diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-19 19:22:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-19 19:22:34 +0000 |
commit | 4930e27d8a945a501f644d048d9b30d48e066450 (patch) | |
tree | 971b0a7a4c08ee828a22547ddb328b1f65ef5aa5 /src | |
parent | b5ee95cb0b07320fe7ff183ac78497e9e692c147 (diff) | |
download | gnunet-4930e27d8a945a501f644d048d9b30d48e066450.tar.gz gnunet-4930e27d8a945a501f644d048d9b30d48e066450.zip |
-use short hashs in fcfsd
Diffstat (limited to 'src')
-rw-r--r-- | src/gns/gnunet-gns-fcfsd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c index 8cc9ba157..0d400011d 100644 --- a/src/gns/gnunet-gns-fcfsd.c +++ b/src/gns/gnunet-gns-fcfsd.c | |||
@@ -133,7 +133,7 @@ struct Request | |||
133 | /** | 133 | /** |
134 | * Public key submitted via form. | 134 | * Public key submitted via form. |
135 | */ | 135 | */ |
136 | char public_key[1024]; | 136 | char public_key[64]; |
137 | 137 | ||
138 | }; | 138 | }; |
139 | 139 | ||
@@ -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 | GNUNET_HashCode pub; | 371 | struct GNUNET_CRYPTO_ShortHashCode pub; |
372 | 372 | ||
373 | GNUNET_assert (GNUNET_OK == | 373 | GNUNET_assert (GNUNET_OK == |
374 | GNUNET_CRYPTO_hash_from_string2 (request->public_key, | 374 | GNUNET_CRYPTO_short_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 | GNUNET_HashCode pub; | 438 | struct GNUNET_CRYPTO_ShortHashCode 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_hash_from_string2 (request->public_key, | 484 | GNUNET_CRYPTO_short_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", |