diff options
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_publish_ublock.c | 6 | ||||
-rw-r--r-- | src/fs/fs_uri.c | 9 | ||||
-rw-r--r-- | src/fs/plugin_block_fs.c | 8 |
3 files changed, 11 insertions, 12 deletions
diff --git a/src/fs/fs_publish_ublock.c b/src/fs/fs_publish_ublock.c index 2d118ee51..fd6f2bd72 100644 --- a/src/fs/fs_publish_ublock.c +++ b/src/fs/fs_publish_ublock.c | |||
@@ -268,9 +268,9 @@ GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, | |||
268 | GNUNET_CRYPTO_ecdsa_key_get_public (nsd, | 268 | GNUNET_CRYPTO_ecdsa_key_get_public (nsd, |
269 | &ub_enc->verification_key); | 269 | &ub_enc->verification_key); |
270 | GNUNET_assert (GNUNET_OK == | 270 | GNUNET_assert (GNUNET_OK == |
271 | GNUNET_CRYPTO_ecdsa_sign (nsd, | 271 | GNUNET_CRYPTO_ecdsa_sign_ (nsd, |
272 | &ub_enc->purpose, | 272 | &ub_enc->purpose, |
273 | &ub_enc->signature)); | 273 | &ub_enc->signature)); |
274 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, | 274 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, |
275 | sizeof(ub_enc->verification_key), | 275 | sizeof(ub_enc->verification_key), |
276 | &query); | 276 | &query); |
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 | ||
diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c index 02855f418..6a9ab3f41 100644 --- a/src/fs/plugin_block_fs.c +++ b/src/fs/plugin_block_fs.c | |||
@@ -191,10 +191,10 @@ block_plugin_fs_evaluate (void *cls, | |||
191 | } | 191 | } |
192 | if ((0 == (eo & GNUNET_BLOCK_EO_LOCAL_SKIP_CRYPTO)) && | 192 | if ((0 == (eo & GNUNET_BLOCK_EO_LOCAL_SKIP_CRYPTO)) && |
193 | (GNUNET_OK != | 193 | (GNUNET_OK != |
194 | GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK, | 194 | GNUNET_CRYPTO_ecdsa_verify_ (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK, |
195 | &ub->purpose, | 195 | &ub->purpose, |
196 | &ub->signature, | 196 | &ub->signature, |
197 | &ub->verification_key))) | 197 | &ub->verification_key))) |
198 | { | 198 | { |
199 | GNUNET_break_op (0); | 199 | GNUNET_break_op (0); |
200 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 200 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |