diff options
Diffstat (limited to 'src/gns/gnunet-gns-helper-service-w32.c')
-rw-r--r-- | src/gns/gnunet-gns-helper-service-w32.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index 26a3f688a..78eb1e0a3 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c | |||
@@ -61,9 +61,9 @@ 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_EccPublicSignKey *zone = NULL; | 64 | static struct GNUNET_CRYPTO_EcdsaPublicKey *zone = NULL; |
65 | static struct GNUNET_HashCode user_zone; | 65 | static struct GNUNET_HashCode user_zone; |
66 | struct GNUNET_CRYPTO_EccPrivateKey *shorten_key = NULL; | 66 | struct GNUNET_CRYPTO_EcdsaPrivateKey *shorten_key = NULL; |
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
@@ -662,8 +662,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
662 | }; | 662 | }; |
663 | 663 | ||
664 | char* keyfile; | 664 | char* keyfile; |
665 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; | 665 | struct GNUNET_CRYPTO_EcdsaPrivateKey *key = NULL; |
666 | struct GNUNET_CRYPTO_EccPublicSignKey pkey; | 666 | struct GNUNET_CRYPTO_EcdsaPublicKey pkey; |
667 | struct GNUNET_CRYPTO_HashAsciiEncoded 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", |
@@ -677,9 +677,9 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
677 | { | 677 | { |
678 | if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) | 678 | if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) |
679 | { | 679 | { |
680 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 680 | key = GNUNET_CRYPTO_ecdsa_key_create_from_file (keyfile); |
681 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (key, &pkey); | 681 | GNUNET_CRYPTO_ecdsa_key_get_public (key, &pkey); |
682 | GNUNET_CRYPTO_hash (&pkey, sizeof(struct GNUNET_CRYPTO_EccPublicSignKey), | 682 | GNUNET_CRYPTO_hash (&pkey, sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey), |
683 | &user_zone); | 683 | &user_zone); |
684 | GNUNET_CRYPTO_hash_to_enc (&user_zone, &zonename); | 684 | GNUNET_CRYPTO_hash_to_enc (&user_zone, &zonename); |
685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -700,7 +700,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
700 | { | 700 | { |
701 | if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) | 701 | if (GNUNET_YES == GNUNET_DISK_file_test (keyfile)) |
702 | { | 702 | { |
703 | shorten_key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 703 | shorten_key = GNUNET_CRYPTO_ecdsa_key_create_from_file (keyfile); |
704 | } | 704 | } |
705 | GNUNET_free(keyfile); | 705 | GNUNET_free(keyfile); |
706 | } | 706 | } |