diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-09 09:41:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-09 09:41:46 +0000 |
commit | 5ae9689165089999037632ce82b3bb921d470bb6 (patch) | |
tree | 4e7504fea930d85a95333e4f8334fc203432e701 /src/namestore/test_namestore_api_lookup.c | |
parent | 0b0770065d84c2a6079c2033dd74ee7c751e88f6 (diff) | |
download | gnunet-5ae9689165089999037632ce82b3bb921d470bb6.tar.gz gnunet-5ae9689165089999037632ce82b3bb921d470bb6.zip |
- changes
Diffstat (limited to 'src/namestore/test_namestore_api_lookup.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup.c | 6 |
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); |