aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_unindex.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-03-03 01:57:04 +0000
committerLRN <lrn1986@gmail.com>2013-03-03 01:57:04 +0000
commit63346db616d6478416ec5686746a7818acf81ed6 (patch)
treee852f16fb85560b97986b87db09f966f2455664e /src/fs/fs_unindex.c
parent9d1521268727d41c5c9ef30d3568125d6f0ac379 (diff)
downloadgnunet-63346db616d6478416ec5686746a7818acf81ed6.tar.gz
gnunet-63346db616d6478416ec5686746a7818acf81ed6.zip
Implement and use GNUNET_CRYPTO_rsa_get_public_key_hash
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r--src/fs/fs_unindex.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index 221760328..028ded44a 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -571,12 +571,7 @@ GNUNET_FS_unindex_do_remove_kblocks_ (struct GNUNET_FS_UnindexContext *uc)
571 GNUNET_CRYPTO_hash (keyword, strlen (keyword), &uc->key); 571 GNUNET_CRYPTO_hash (keyword, strlen (keyword), &uc->key);
572 pk = GNUNET_CRYPTO_rsa_key_create_from_hash (&uc->key); 572 pk = GNUNET_CRYPTO_rsa_key_create_from_hash (&uc->key);
573 GNUNET_assert (pk != NULL); 573 GNUNET_assert (pk != NULL);
574 GNUNET_CRYPTO_rsa_key_get_public (pk, &pub); 574 GNUNET_CRYPTO_rsa_get_public_key_hash (pk, &uc->query);
575 GNUNET_CRYPTO_rsa_key_free (pk);
576 GNUNET_CRYPTO_hash (&pub,
577 sizeof (struct
578 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
579 &uc->query);
580 uc->first_uid = 0; 575 uc->first_uid = 0;
581 uc->dqe = GNUNET_DATASTORE_get_key (uc->dsh, 576 uc->dqe = GNUNET_DATASTORE_get_key (uc->dsh,
582 uc->roff++, 577 uc->roff++,