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/fs/fs_uri.c | |
parent | 2348fe4ae8ffe93765d5c56c3cc5d4490eae946d (diff) | |
download | gnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.tar.gz gnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.zip |
fix sign api for to address #6164
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index c1faf4f12..410f3c815 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -612,7 +612,7 @@ uri_loc_parse (const char *s, char **emsg) | |||
612 | ass.exptime = GNUNET_TIME_absolute_hton (et); | 612 | ass.exptime = GNUNET_TIME_absolute_hton (et); |
613 | if (GNUNET_OK != | 613 | if (GNUNET_OK != |
614 | GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT, | 614 | GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT, |
615 | &ass.purpose, | 615 | &ass, |
616 | &sig, | 616 | &sig, |
617 | &ass.peer.public_key)) | 617 | &ass.peer.public_key)) |
618 | { | 618 | { |
@@ -900,10 +900,9 @@ GNUNET_FS_uri_loc_create (const struct GNUNET_FS_Uri *base_uri, | |||
900 | uri->data.loc.fi = base_uri->data.chk; | 900 | uri->data.loc.fi = base_uri->data.chk; |
901 | uri->data.loc.expirationTime = et; | 901 | uri->data.loc.expirationTime = et; |
902 | uri->data.loc.peer.public_key = my_public_key; | 902 | uri->data.loc.peer.public_key = my_public_key; |
903 | GNUNET_assert (GNUNET_OK == | 903 | GNUNET_CRYPTO_eddsa_sign (sign_key, |
904 | GNUNET_CRYPTO_eddsa_sign (sign_key, | 904 | &ass, |
905 | &ass.purpose, | 905 | &uri->data.loc.contentSignature); |
906 | &uri->data.loc.contentSignature)); | ||
907 | return uri; | 906 | return uri; |
908 | } | 907 | } |
909 | 908 | ||