diff options
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 | ||