gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20915 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r20915 - gnunet/src/gns
Date: Tue, 10 Apr 2012 14:35:05 +0200

Author: schanzen
Date: 2012-04-10 14:35:05 +0200 (Tue, 10 Apr 2012)
New Revision: 20915

Modified:
   gnunet/src/gns/test_gns_simple_shorten.c
Log:
-use precomp keys


Modified: gnunet/src/gns/test_gns_simple_shorten.c
===================================================================
--- gnunet/src/gns/test_gns_simple_shorten.c    2012-04-10 12:12:31 UTC (rev 
20914)
+++ gnunet/src/gns/test_gns_simple_shorten.c    2012-04-10 12:35:05 UTC (rev 
20915)
@@ -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 @@
   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 @@
 {
   int ret;
 
-  GNUNET_log_setup ("test-gns-simple-lookup",
+  GNUNET_log_setup ("test-gns-simple-shorten",
 #if VERBOSE
                     "DEBUG",
 #else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]