diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-07 09:33:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-07 09:33:59 +0000 |
commit | 1eb6660144445bd81396eea0bf49d42efc07e5ed (patch) | |
tree | 3697d53965216a43cbc13177a7ec017a39512d2c /src/gns/gnunet-gns-fcfsd.c | |
parent | 19d6b482f8586fa1010f50791b5fcc4d77c3a6bc (diff) | |
download | gnunet-1eb6660144445bd81396eea0bf49d42efc07e5ed.tar.gz gnunet-1eb6660144445bd81396eea0bf49d42efc07e5ed.zip |
-PKEY records should contain hash of public key, not public key
Diffstat (limited to 'src/gns/gnunet-gns-fcfsd.c')
-rw-r--r-- | src/gns/gnunet-gns-fcfsd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c index 178772089..f931a3680 100644 --- a/src/gns/gnunet-gns-fcfsd.c +++ b/src/gns/gnunet-gns-fcfsd.c | |||
@@ -368,12 +368,12 @@ lookup_result_processor (void *cls, | |||
368 | { | 368 | { |
369 | struct Request *request = cls; | 369 | struct Request *request = cls; |
370 | struct GNUNET_NAMESTORE_RecordData r; | 370 | struct GNUNET_NAMESTORE_RecordData r; |
371 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; | 371 | GNUNET_HashCode pub; |
372 | 372 | ||
373 | GNUNET_assert (GNUNET_OK == | 373 | GNUNET_assert (GNUNET_OK == |
374 | GNUNET_CRYPTO_rsa_public_key_from_string (request->public_key, | 374 | GNUNET_CRYPTO_hash_from_string2 (request->public_key, |
375 | strlen (request->public_key), | 375 | strlen (request->public_key), |
376 | &pub)); | 376 | &pub)); |
377 | request->qe = NULL; | 377 | request->qe = NULL; |
378 | if (0 != rd_count) | 378 | if (0 != rd_count) |
379 | { | 379 | { |
@@ -435,7 +435,7 @@ create_response (void *cls, | |||
435 | struct MHD_Response *response; | 435 | struct MHD_Response *response; |
436 | struct Request *request; | 436 | struct Request *request; |
437 | int ret; | 437 | int ret; |
438 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; | 438 | GNUNET_HashCode pub; |
439 | 439 | ||
440 | if ( (0 == strcmp (method, MHD_HTTP_METHOD_GET)) || | 440 | if ( (0 == strcmp (method, MHD_HTTP_METHOD_GET)) || |
441 | (0 == strcmp (method, MHD_HTTP_METHOD_HEAD)) ) | 441 | (0 == strcmp (method, MHD_HTTP_METHOD_HEAD)) ) |
@@ -481,9 +481,9 @@ create_response (void *cls, | |||
481 | request->pp = NULL; | 481 | request->pp = NULL; |
482 | } | 482 | } |
483 | if (GNUNET_OK != | 483 | if (GNUNET_OK != |
484 | GNUNET_CRYPTO_rsa_public_key_from_string (request->public_key, | 484 | GNUNET_CRYPTO_hash_from_string2 (request->public_key, |
485 | strlen (request->public_key), | 485 | strlen (request->public_key), |
486 | &pub)) | 486 | &pub)) |
487 | { | 487 | { |
488 | /* parse error */ | 488 | /* parse error */ |
489 | return fill_s_reply ("Failed to parse given public key", | 489 | return fill_s_reply ("Failed to parse given public key", |