From: Martin Schanzenbach Date: Tue, 10 Apr 2012 12:35:05 +0000 (+0000) Subject: -use precomp keys X-Git-Tag: initial-import-from-subversion-38251~13970 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a35f78d77df9313f355ec3ea157709260740bb9e;p=oweals%2Fgnunet.git -use precomp keys --- 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 @@ #define TEST_ALICE_PSEU "carol" #define TEST_EXPECTED_RESULT "www.carol.gnunet" +#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey" +#define KEYFILE_ALICE "../namestore/zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey" + /* Globals */ /** @@ -224,8 +227,8 @@ do_shorten(void *cls, const struct GNUNET_PeerIdentity *id, our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile); GNUNET_free(our_keyfile); - bob_key = GNUNET_CRYPTO_rsa_key_create (); - alice_key = GNUNET_CRYPTO_rsa_key_create (); + bob_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_BOB); + alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_ALICE); GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey); GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey); @@ -367,7 +370,7 @@ main (int argc, char *argv[]) { int ret; - GNUNET_log_setup ("test-gns-simple-lookup", + GNUNET_log_setup ("test-gns-simple-shorten", #if VERBOSE "DEBUG", #else