diff options
author | LRN <lrn1986@gmail.com> | 2013-08-20 03:24:08 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-08-20 03:24:08 +0000 |
commit | 43b665781fa6ffaae786cbcbc4d769fae40191f4 (patch) | |
tree | bed28c08bc234b984faa757b2ddf9b43383b88c8 /src/gns | |
parent | 1492d04011bf60ec0c28a6d94977a105f6c3b15b (diff) | |
download | gnunet-43b665781fa6ffaae786cbcbc4d769fae40191f4.tar.gz gnunet-43b665781fa6ffaae786cbcbc4d769fae40191f4.zip |
Remove short hashes from W32 GNS helper
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-gns-helper-service-w32.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index 97e94304f..e2e6ef31f 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c | |||
@@ -62,7 +62,7 @@ struct request | |||
62 | static struct GNUNET_GNS_Handle *gns; | 62 | static struct GNUNET_GNS_Handle *gns; |
63 | 63 | ||
64 | static struct GNUNET_CRYPTO_EccPublicKey *zone = NULL; | 64 | static struct GNUNET_CRYPTO_EccPublicKey *zone = NULL; |
65 | static struct GNUNET_CRYPTO_ShortHashCode user_zone; | 65 | static struct GNUNET_HashCode user_zone; |
66 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key = NULL; | 66 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key = NULL; |
67 | 67 | ||
68 | 68 | ||
@@ -664,7 +664,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
664 | char* keyfile; | 664 | char* keyfile; |
665 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; | 665 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; |
666 | struct GNUNET_CRYPTO_EccPublicKey pkey; | 666 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
667 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; | 667 | struct GNUNET_CRYPTO_HashAsciiEncoded zonename; |
668 | 668 | ||
669 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns", | 669 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns", |
670 | "ZONEKEY", &keyfile)) | 670 | "ZONEKEY", &keyfile)) |
@@ -679,10 +679,9 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
679 | { | 679 | { |
680 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 680 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
681 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 681 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
682 | GNUNET_CRYPTO_short_hash(&pkey, | 682 | GNUNET_CRYPTO_hash (&pkey, sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
683 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), | 683 | &user_zone); |
684 | &user_zone); | 684 | GNUNET_CRYPTO_hash_to_enc (&user_zone, &zonename); |
685 | GNUNET_CRYPTO_short_hash_to_enc (&user_zone, &zonename); | ||
686 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
687 | "Using zone: %s!\n", &zonename); | 686 | "Using zone: %s!\n", &zonename); |
688 | GNUNET_CRYPTO_ecc_key_free(key); | 687 | GNUNET_CRYPTO_ecc_key_free(key); |