diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 16:56:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 16:56:33 +0200 |
commit | 11ae9f030e13d07c505a4d5477d592ddb4b3acf6 (patch) | |
tree | 69ce120a7c60c84d0d074bab8fe2cd26e77300dc /src/transport/gnunet-service-transport_validation.c | |
parent | 2348fe4ae8ffe93765d5c56c3cc5d4490eae946d (diff) | |
download | gnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.tar.gz gnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.zip |
fix sign api for to address #6164
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 631b0a8f8..610c45a21 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -1271,8 +1271,9 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
1271 | *sig_cache_exp = GNUNET_TIME_relative_to_absolute (PONG_SIGNATURE_LIFETIME); | 1271 | *sig_cache_exp = GNUNET_TIME_relative_to_absolute (PONG_SIGNATURE_LIFETIME); |
1272 | pong->expiration = GNUNET_TIME_absolute_hton (*sig_cache_exp); | 1272 | pong->expiration = GNUNET_TIME_absolute_hton (*sig_cache_exp); |
1273 | if (GNUNET_OK != | 1273 | if (GNUNET_OK != |
1274 | GNUNET_CRYPTO_eddsa_sign (GST_my_private_key, &pong->purpose, | 1274 | GNUNET_CRYPTO_eddsa_sign_ (GST_my_private_key, |
1275 | sig_cache)) | 1275 | &pong->purpose, |
1276 | sig_cache)) | ||
1276 | { | 1277 | { |
1277 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1278 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1278 | _ ("Failed to create PONG signature for peer `%s'\n"), | 1279 | _ ("Failed to create PONG signature for peer `%s'\n"), |
@@ -1559,7 +1560,7 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | |||
1559 | if (GNUNET_YES == do_verify) | 1560 | if (GNUNET_YES == do_verify) |
1560 | { | 1561 | { |
1561 | /* Do expensive verification */ | 1562 | /* Do expensive verification */ |
1562 | sig_res = GNUNET_CRYPTO_eddsa_verify ( | 1563 | sig_res = GNUNET_CRYPTO_eddsa_verify_ ( |
1563 | GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, | 1564 | GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN, |
1564 | &pong->purpose, | 1565 | &pong->purpose, |
1565 | &pong->signature, | 1566 | &pong->signature, |