aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_lookup.c')
-rw-r--r--src/namestore/test_namestore_api_lookup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c
index 17477294a..47bc9b672 100644
--- a/src/namestore/test_namestore_api_lookup.c
+++ b/src/namestore/test_namestore_api_lookup.c
@@ -256,11 +256,7 @@ run (void *cls, char *const *args, const char *cfgfile,
256 size_t rd_ser_len; 256 size_t rd_ser_len;
257 257
258 /* load privat key */ 258 /* load privat key */
259 char *hostkey_file; 259 privkey = GNUNET_CRYPTO_rsa_key_create_from_file("test_hostkey");
260 GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, "4UCICULTINKC87UO4326KEEDQ9MTEP2AJT88MJFVGTGNK12QNGMQI2S41VI07UUU6EO19BTB06PDL0HE6VP1OM50HOJEI75RHP4JP80.zone");
261 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file);
262 privkey = GNUNET_CRYPTO_rsa_key_create_from_file(hostkey_file);
263 GNUNET_free (hostkey_file);
264 GNUNET_assert (privkey != NULL); 260 GNUNET_assert (privkey != NULL);
265 /* get public key */ 261 /* get public key */
266 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); 262 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey);