aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_simple_shorten.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_simple_shorten.c')
-rw-r--r--src/gns/test_gns_simple_shorten.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c
index 3a684dbaa..8cab0dbb2 100644
--- a/src/gns/test_gns_simple_shorten.c
+++ b/src/gns/test_gns_simple_shorten.c
@@ -61,8 +61,8 @@ static struct GNUNET_GNS_Handle *gns_handle;
61 61
62const struct GNUNET_CONFIGURATION_Handle *cfg; 62const struct GNUNET_CONFIGURATION_Handle *cfg;
63 63
64struct GNUNET_CRYPTO_EccPublicKey priv_pkey; 64struct GNUNET_CRYPTO_EccPublicSignKey priv_pkey;
65struct GNUNET_CRYPTO_EccPublicKey short_pkey; 65struct GNUNET_CRYPTO_EccPublicSignKey short_pkey;
66struct GNUNET_CRYPTO_EccPrivateKey *priv_key; 66struct GNUNET_CRYPTO_EccPrivateKey *priv_key;
67struct GNUNET_CRYPTO_EccPrivateKey *short_key; 67struct GNUNET_CRYPTO_EccPrivateKey *short_key;
68 68
@@ -170,9 +170,9 @@ void do_check (void *cls,
170 const struct GNUNET_CONFIGURATION_Handle *ccfg, 170 const struct GNUNET_CONFIGURATION_Handle *ccfg,
171 struct GNUNET_TESTING_Peer *peer) 171 struct GNUNET_TESTING_Peer *peer)
172{ 172{
173 struct GNUNET_CRYPTO_EccPublicKey our_pkey; 173 struct GNUNET_CRYPTO_EccPublicSignKey our_pkey;
174 struct GNUNET_CRYPTO_EccPublicKey alice_pkey; 174 struct GNUNET_CRYPTO_EccPublicSignKey alice_pkey;
175 struct GNUNET_CRYPTO_EccPublicKey bob_pkey; 175 struct GNUNET_CRYPTO_EccPublicSignKey bob_pkey;
176 struct GNUNET_CRYPTO_EccPrivateKey *our_key; 176 struct GNUNET_CRYPTO_EccPrivateKey *our_key;
177 struct GNUNET_CRYPTO_EccPrivateKey *alice_key; 177 struct GNUNET_CRYPTO_EccPrivateKey *alice_key;
178 struct GNUNET_CRYPTO_EccPrivateKey *bob_key; 178 struct GNUNET_CRYPTO_EccPrivateKey *bob_key;
@@ -237,11 +237,11 @@ void do_check (void *cls,
237 GNUNET_free(shorten_keyfile); 237 GNUNET_free(shorten_keyfile);
238 GNUNET_free(private_keyfile); 238 GNUNET_free(private_keyfile);
239 239
240 GNUNET_CRYPTO_ecc_key_get_public (our_key, &our_pkey); 240 GNUNET_CRYPTO_ecc_key_get_public_for_signature (our_key, &our_pkey);
241 GNUNET_CRYPTO_ecc_key_get_public (alice_key, &alice_pkey); 241 GNUNET_CRYPTO_ecc_key_get_public_for_signature (alice_key, &alice_pkey);
242 GNUNET_CRYPTO_ecc_key_get_public (bob_key, &bob_pkey); 242 GNUNET_CRYPTO_ecc_key_get_public_for_signature (bob_key, &bob_pkey);
243 GNUNET_CRYPTO_ecc_key_get_public (priv_key, &priv_pkey); 243 GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv_key, &priv_pkey);
244 GNUNET_CRYPTO_ecc_key_get_public (short_key, &short_pkey); 244 GNUNET_CRYPTO_ecc_key_get_public_for_signature (short_key, &short_pkey);
245 245
246 GNUNET_CRYPTO_short_hash(&priv_pkey, sizeof(priv_pkey), &priv_zone); 246 GNUNET_CRYPTO_short_hash(&priv_pkey, sizeof(priv_pkey), &priv_zone);
247 GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone); 247 GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone);