aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.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_namespace.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_namespace.c')
-rw-r--r--src/fs/fs_namespace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 46121aa9c..9781cf6b7 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -509,7 +509,6 @@ process_namespace (void *cls, const char *filename)
509{ 509{
510 struct ProcessNamespaceContext *pnc = cls; 510 struct ProcessNamespaceContext *pnc = cls;
511 struct GNUNET_CRYPTO_RsaPrivateKey *key; 511 struct GNUNET_CRYPTO_RsaPrivateKey *key;
512 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk;
513 struct GNUNET_HashCode id; 512 struct GNUNET_HashCode id;
514 const char *name; 513 const char *name;
515 const char *t; 514 const char *t;
@@ -525,9 +524,8 @@ process_namespace (void *cls, const char *filename)
525 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); 524 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename);
526 return GNUNET_OK; 525 return GNUNET_OK;
527 } 526 }
528 GNUNET_CRYPTO_rsa_key_get_public (key, &pk); 527 GNUNET_CRYPTO_rsa_get_public_key_hash (key, &id);
529 GNUNET_CRYPTO_rsa_key_free (key); 528 GNUNET_CRYPTO_rsa_key_free (key);
530 GNUNET_CRYPTO_hash (&pk, sizeof (pk), &id);
531 name = filename; 529 name = filename;
532 while (NULL != (t = strstr (name, DIR_SEPARATOR_STR))) 530 while (NULL != (t = strstr (name, DIR_SEPARATOR_STR)))
533 name = t + 1; 531 name = t + 1;