diff options
author | LRN <lrn1986@gmail.com> | 2013-08-16 04:08:16 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-08-16 04:08:16 +0000 |
commit | 2e754e8ef258a99937fd4a630ad69c61ee6fb929 (patch) | |
tree | 50ad0372f4fce89d14a5afc26085d419301d9f19 | |
parent | 37284be800eef44babef8fc3cc0461c0d3cbea67 (diff) | |
download | gnunet-2e754e8ef258a99937fd4a630ad69c61ee6fb929.tar.gz gnunet-2e754e8ef258a99937fd4a630ad69c61ee6fb929.zip |
Make w32 gns helper compile again
-rw-r--r-- | src/gns/gnunet-gns-helper-service-w32.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index 187ee41ae..97e94304f 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c | |||
@@ -61,7 +61,7 @@ struct request | |||
61 | */ | 61 | */ |
62 | static struct GNUNET_GNS_Handle *gns; | 62 | static struct GNUNET_GNS_Handle *gns; |
63 | 63 | ||
64 | static struct GNUNET_CRYPTO_ShortHashCode *zone = NULL; | 64 | static struct GNUNET_CRYPTO_EccPublicKey *zone = NULL; |
65 | static struct GNUNET_CRYPTO_ShortHashCode user_zone; | 65 | static struct GNUNET_CRYPTO_ShortHashCode user_zone; |
66 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key = NULL; | 66 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key = NULL; |
67 | 67 | ||
@@ -569,7 +569,7 @@ get_ip_from_hostname (struct GNUNET_SERVER_Client *client, | |||
569 | "Launching a lookup for client %p with rq %p\n", | 569 | "Launching a lookup for client %p with rq %p\n", |
570 | client, rq); | 570 | client, rq); |
571 | 571 | ||
572 | if (NULL != GNUNET_GNS_lookup_zone (gns, hostname, zone, rtype, | 572 | if (NULL != GNUNET_GNS_lookup (gns, hostname, zone, rtype, |
573 | GNUNET_YES, shorten_key, &process_ip_lookup_result, rq)) | 573 | GNUNET_YES, shorten_key, &process_ip_lookup_result, rq)) |
574 | { | 574 | { |
575 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 575 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -682,8 +682,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
682 | GNUNET_CRYPTO_short_hash(&pkey, | 682 | GNUNET_CRYPTO_short_hash(&pkey, |
683 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), | 683 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
684 | &user_zone); | 684 | &user_zone); |
685 | zone = &user_zone; | 685 | GNUNET_CRYPTO_short_hash_to_enc (&user_zone, &zonename); |
686 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | ||
687 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 686 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
688 | "Using zone: %s!\n", &zonename); | 687 | "Using zone: %s!\n", &zonename); |
689 | GNUNET_CRYPTO_ecc_key_free(key); | 688 | GNUNET_CRYPTO_ecc_key_free(key); |