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)
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 221760328c..028ded44a2 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)
GNUNET_CRYPTO_hash (keyword, strlen (keyword), &uc->key);
pk = GNUNET_CRYPTO_rsa_key_create_from_hash (&uc->key);
GNUNET_assert (pk != NULL);
- GNUNET_CRYPTO_rsa_key_get_public (pk, &pub);
- GNUNET_CRYPTO_rsa_key_free (pk);
- GNUNET_CRYPTO_hash (&pub,
- sizeof (struct
- GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
- &uc->query);
+ GNUNET_CRYPTO_rsa_get_public_key_hash (pk, &uc->query);
uc->first_uid = 0;
uc->dqe = GNUNET_DATASTORE_get_key (uc->dsh,
uc->roff++,