diff options
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index f4d4e3e2f..793f60694 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -668,9 +668,10 @@ setup_flood_message (unsigned int slot, struct GNUNET_TIME_Absolute ts) | |||
668 | fm->origin = my_identity; | 668 | fm->origin = my_identity; |
669 | fm->proof_of_work = my_proof; | 669 | fm->proof_of_work = my_proof; |
670 | if (nse_work_required > 0) | 670 | if (nse_work_required > 0) |
671 | GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_sign (my_private_key, | 671 | GNUNET_assert (GNUNET_OK == |
672 | &fm->purpose, | 672 | GNUNET_CRYPTO_eddsa_sign_ (my_private_key, |
673 | &fm->signature)); | 673 | &fm->purpose, |
674 | &fm->signature)); | ||
674 | else | 675 | else |
675 | memset (&fm->signature, 0, sizeof(fm->signature)); | 676 | memset (&fm->signature, 0, sizeof(fm->signature)); |
676 | } | 677 | } |
@@ -922,10 +923,10 @@ verify_message_crypto (const struct GNUNET_NSE_FloodMessage *incoming_flood) | |||
922 | } | 923 | } |
923 | if ((nse_work_required > 0) && | 924 | if ((nse_work_required > 0) && |
924 | (GNUNET_OK != | 925 | (GNUNET_OK != |
925 | GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_NSE_SEND, | 926 | GNUNET_CRYPTO_eddsa_verify_ (GNUNET_SIGNATURE_PURPOSE_NSE_SEND, |
926 | &incoming_flood->purpose, | 927 | &incoming_flood->purpose, |
927 | &incoming_flood->signature, | 928 | &incoming_flood->signature, |
928 | &incoming_flood->origin.public_key))) | 929 | &incoming_flood->origin.public_key))) |
929 | { | 930 | { |
930 | GNUNET_break_op (0); | 931 | GNUNET_break_op (0); |
931 | return GNUNET_NO; | 932 | return GNUNET_NO; |