diff options
Diffstat (limited to 'src/namestore/namestore_common.c')
-rw-r--r-- | src/namestore/namestore_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 117d96a57..24711ba47 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c | |||
@@ -378,7 +378,7 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, | |||
378 | { | 378 | { |
379 | struct in_addr value_a; | 379 | struct in_addr value_a; |
380 | struct in6_addr value_aaaa; | 380 | struct in6_addr value_aaaa; |
381 | GNUNET_HashCode pkey; | 381 | struct GNUNET_CRYPTO_ShortHashCode pkey; |
382 | 382 | ||
383 | switch (type) | 383 | switch (type) |
384 | { | 384 | { |
@@ -424,11 +424,11 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, | |||
424 | return GNUNET_OK; | 424 | return GNUNET_OK; |
425 | case GNUNET_NAMESTORE_TYPE_PKEY: | 425 | case GNUNET_NAMESTORE_TYPE_PKEY: |
426 | if (GNUNET_OK != | 426 | if (GNUNET_OK != |
427 | GNUNET_CRYPTO_hash_from_string (s, &pkey)) | 427 | GNUNET_CRYPTO_short_hash_from_string (s, &pkey)) |
428 | return GNUNET_SYSERR; | 428 | return GNUNET_SYSERR; |
429 | *data = GNUNET_malloc (sizeof (GNUNET_HashCode)); | 429 | *data = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
430 | memcpy (*data, &pkey, sizeof (pkey)); | 430 | memcpy (*data, &pkey, sizeof (pkey)); |
431 | *data_size = sizeof (GNUNET_HashCode); | 431 | *data_size = sizeof (struct GNUNET_CRYPTO_ShortHashCode); |
432 | return GNUNET_OK; | 432 | return GNUNET_OK; |
433 | case GNUNET_NAMESTORE_TYPE_PSEU: | 433 | case GNUNET_NAMESTORE_TYPE_PSEU: |
434 | *data = GNUNET_strdup (s); | 434 | *data = GNUNET_strdup (s); |