From 11ae9f030e13d07c505a4d5477d592ddb4b3acf6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Apr 2020 16:56:33 +0200 Subject: fix sign api for to address #6164 --- src/hello/hello-ng.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/hello/hello-ng.c') diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c index 8dea616b9..d06feadd5 100644 --- a/src/hello/hello-ng.c +++ b/src/hello/hello-ng.c @@ -79,8 +79,7 @@ GNUNET_HELLO_sign_address ( sa.purpose.size = htonl (sizeof(sa)); sa.mono_time = GNUNET_TIME_absolute_hton (mono_time); GNUNET_CRYPTO_hash (address, strlen (address), &sa.h_addr); - GNUNET_assert (GNUNET_YES == - GNUNET_CRYPTO_eddsa_sign (private_key, &sa.purpose, &sig)); + GNUNET_CRYPTO_eddsa_sign (private_key, &sa, &sig); sig_str = NULL; (void) GNUNET_STRINGS_base64_encode (&sig, sizeof(sig), &sig_str); *result_size = @@ -165,7 +164,7 @@ GNUNET_HELLO_extract_address (const void *raw, GNUNET_CRYPTO_hash (raw_addr, strlen (raw_addr), &sa.h_addr); if (GNUNET_YES != GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS, - &sa.purpose, + &sa, sig, public_key)) { -- cgit v1.2.3