aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-04-10 12:35:05 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-04-10 12:35:05 +0000
commita35f78d77df9313f355ec3ea157709260740bb9e (patch)
tree3de8a46fba42fe663f8fe287e56ab745ef9dc372 /src/gns
parente610c681117659c07d1ccbb80c32ecc5264ef218 (diff)
downloadgnunet-a35f78d77df9313f355ec3ea157709260740bb9e.tar.gz
gnunet-a35f78d77df9313f355ec3ea157709260740bb9e.zip
-use precomp keys
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/test_gns_simple_shorten.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c
index 80f844f87..e2f20b771 100644
--- a/src/gns/test_gns_simple_shorten.c
+++ b/src/gns/test_gns_simple_shorten.c
@@ -51,6 +51,9 @@
51#define TEST_ALICE_PSEU "carol" 51#define TEST_ALICE_PSEU "carol"
52#define TEST_EXPECTED_RESULT "www.carol.gnunet" 52#define TEST_EXPECTED_RESULT "www.carol.gnunet"
53 53
54#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
55#define KEYFILE_ALICE "../namestore/zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"
56
54/* Globals */ 57/* Globals */
55 58
56/** 59/**
@@ -224,8 +227,8 @@ do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
224 our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile); 227 our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile);
225 GNUNET_free(our_keyfile); 228 GNUNET_free(our_keyfile);
226 229
227 bob_key = GNUNET_CRYPTO_rsa_key_create (); 230 bob_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_BOB);
228 alice_key = GNUNET_CRYPTO_rsa_key_create (); 231 alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_ALICE);
229 232
230 GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey); 233 GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey);
231 GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey); 234 GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
@@ -367,7 +370,7 @@ main (int argc, char *argv[])
367{ 370{
368 int ret; 371 int ret;
369 372
370 GNUNET_log_setup ("test-gns-simple-lookup", 373 GNUNET_log_setup ("test-gns-simple-shorten",
371#if VERBOSE 374#if VERBOSE
372 "DEBUG", 375 "DEBUG",
373#else 376#else