diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-08 17:26:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-08 17:26:46 +0000 |
commit | 59c5988e74fdaeb193d3daa2dee12b620c7eee75 (patch) | |
tree | 33dbb4f1e357fec076d278fdcf6d7b7f9ae182c8 /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | 5b0d869b093391f8979475f00e21cc28e43f107c (diff) | |
download | gnunet-59c5988e74fdaeb193d3daa2dee12b620c7eee75.tar.gz gnunet-59c5988e74fdaeb193d3daa2dee12b620c7eee75.zip |
namestore manages zonekey files with private keys
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index 4ee633598..431e7d1a5 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -222,7 +222,11 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
222 | size_t rd_ser_len; | 222 | size_t rd_ser_len; |
223 | 223 | ||
224 | /* load privat key */ | 224 | /* load privat key */ |
225 | privkey = GNUNET_CRYPTO_rsa_key_create_from_file("hostkey"); | 225 | char *hostkey_file; |
226 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, "4UCICULTINKC87UO4326KEEDQ9MTEP2AJT88MJFVGTGNK12QNGMQI2S41VI07UUU6EO19BTB06PDL0HE6VP1OM50HOJEI75RHP4JP80.zone"); | ||
227 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | ||
228 | privkey = GNUNET_CRYPTO_rsa_key_create_from_file(hostkey_file); | ||
229 | GNUNET_free (hostkey_file); | ||
226 | GNUNET_assert (privkey != NULL); | 230 | GNUNET_assert (privkey != NULL); |
227 | /* get public key */ | 231 | /* get public key */ |
228 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); | 232 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); |