diff options
Diffstat (limited to 'src/gns/test_gns_simple_delegated_lookup.c')
-rw-r--r-- | src/gns/test_gns_simple_delegated_lookup.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c index 393ddfb0e..f2610c167 100644 --- a/src/gns/test_gns_simple_delegated_lookup.c +++ b/src/gns/test_gns_simple_delegated_lookup.c | |||
@@ -189,12 +189,12 @@ do_check (void *cls, | |||
189 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 189 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
190 | struct GNUNET_TESTING_Peer *peer) | 190 | struct GNUNET_TESTING_Peer *peer) |
191 | { | 191 | { |
192 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded alice_pkey; | 192 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; |
193 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded bob_pkey; | 193 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; |
194 | struct GNUNET_CRYPTO_RsaPrivateKey *alice_key; | 194 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
195 | struct GNUNET_CRYPTO_RsaPrivateKey *bob_key; | 195 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
196 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; | 196 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; |
197 | struct GNUNET_CRYPTO_RsaSignature *sig; | 197 | struct GNUNET_CRYPTO_EccSignature *sig; |
198 | char* alice_keyfile; | 198 | char* alice_keyfile; |
199 | struct GNUNET_TIME_Absolute et; | 199 | struct GNUNET_TIME_Absolute et; |
200 | struct GNUNET_NAMESTORE_RecordData rd; | 200 | struct GNUNET_NAMESTORE_RecordData rd; |
@@ -223,10 +223,10 @@ do_check (void *cls, | |||
223 | GNUNET_SCHEDULER_shutdown (); | 223 | GNUNET_SCHEDULER_shutdown (); |
224 | return; | 224 | return; |
225 | } | 225 | } |
226 | alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile); | 226 | alice_key = GNUNET_CRYPTO_ecc_key_create_from_file (alice_keyfile); |
227 | bob_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_BOB); | 227 | bob_key = GNUNET_CRYPTO_ecc_key_create_from_file (KEYFILE_BOB); |
228 | GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey); | 228 | GNUNET_CRYPTO_ecc_key_get_public (alice_key, &alice_pkey); |
229 | GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey); | 229 | GNUNET_CRYPTO_ecc_key_get_public (bob_key, &bob_pkey); |
230 | rd.expiration_time = UINT64_MAX; | 230 | rd.expiration_time = UINT64_MAX; |
231 | GNUNET_assert (1 == inet_pton (AF_INET, ip, &web)); | 231 | GNUNET_assert (1 == inet_pton (AF_INET, ip, &web)); |
232 | GNUNET_CRYPTO_short_hash (&bob_pkey, sizeof(bob_pkey), &bob_hash); | 232 | GNUNET_CRYPTO_short_hash (&bob_pkey, sizeof(bob_pkey), &bob_hash); |
@@ -259,8 +259,8 @@ do_check (void *cls, | |||
259 | NULL); | 259 | NULL); |
260 | GNUNET_free (sig); | 260 | GNUNET_free (sig); |
261 | GNUNET_free (alice_keyfile); | 261 | GNUNET_free (alice_keyfile); |
262 | GNUNET_CRYPTO_rsa_key_free (bob_key); | 262 | GNUNET_CRYPTO_ecc_key_free (bob_key); |
263 | GNUNET_CRYPTO_rsa_key_free (alice_key); | 263 | GNUNET_CRYPTO_ecc_key_free (alice_key); |
264 | } | 264 | } |
265 | 265 | ||
266 | 266 | ||