diff options
Diffstat (limited to 'src/namestore/test_namestore_api_put.c')
-rw-r--r-- | src/namestore/test_namestore_api_put.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/namestore/test_namestore_api_put.c b/src/namestore/test_namestore_api_put.c index e4bc5e4bb..df5cb336e 100644 --- a/src/namestore/test_namestore_api_put.c +++ b/src/namestore/test_namestore_api_put.c | |||
@@ -42,9 +42,9 @@ static struct GNUNET_NAMESTORE_Handle * nsh; | |||
42 | 42 | ||
43 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 43 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; |
44 | 44 | ||
45 | static struct GNUNET_CRYPTO_RsaPrivateKey * privkey; | 45 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; |
46 | 46 | ||
47 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; | 47 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey; |
48 | 48 | ||
49 | static struct GNUNET_NAMESTORE_RecordData *s_rd; | 49 | static struct GNUNET_NAMESTORE_RecordData *s_rd; |
50 | 50 | ||
@@ -66,7 +66,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
66 | 66 | ||
67 | if (privkey != NULL) | 67 | if (privkey != NULL) |
68 | { | 68 | { |
69 | GNUNET_CRYPTO_rsa_key_free (privkey); | 69 | GNUNET_CRYPTO_ecc_key_free (privkey); |
70 | privkey = NULL; | 70 | privkey = NULL; |
71 | } | 71 | } |
72 | GNUNET_SCHEDULER_shutdown (); | 72 | GNUNET_SCHEDULER_shutdown (); |
@@ -85,7 +85,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
85 | 85 | ||
86 | if (privkey != NULL) | 86 | if (privkey != NULL) |
87 | { | 87 | { |
88 | GNUNET_CRYPTO_rsa_key_free (privkey); | 88 | GNUNET_CRYPTO_ecc_key_free (privkey); |
89 | privkey = NULL; | 89 | privkey = NULL; |
90 | } | 90 | } |
91 | if (nsh != NULL) | 91 | if (nsh != NULL) |
@@ -136,7 +136,7 @@ run (void *cls, | |||
136 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 136 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
137 | struct GNUNET_TESTING_Peer *peer) | 137 | struct GNUNET_TESTING_Peer *peer) |
138 | { | 138 | { |
139 | struct GNUNET_CRYPTO_RsaSignature *signature; | 139 | struct GNUNET_CRYPTO_EccSignature *signature; |
140 | char * s_name; | 140 | char * s_name; |
141 | int c; | 141 | int c; |
142 | char *hostkey_file; | 142 | char *hostkey_file; |
@@ -147,11 +147,11 @@ run (void *cls, | |||
147 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, | 147 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, |
148 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 148 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
150 | privkey = GNUNET_CRYPTO_rsa_key_create_from_file(hostkey_file); | 150 | privkey = GNUNET_CRYPTO_ecc_key_create_from_file(hostkey_file); |
151 | GNUNET_assert (privkey != NULL); | 151 | GNUNET_assert (privkey != NULL); |
152 | GNUNET_free (hostkey_file); | 152 | GNUNET_free (hostkey_file); |
153 | /* get public key */ | 153 | /* get public key */ |
154 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); | 154 | GNUNET_CRYPTO_ecc_key_get_public(privkey, &pubkey); |
155 | nsh = GNUNET_NAMESTORE_connect (cfg); | 155 | nsh = GNUNET_NAMESTORE_connect (cfg); |
156 | GNUNET_break (NULL != nsh); | 156 | GNUNET_break (NULL != nsh); |
157 | /* create record */ | 157 | /* create record */ |