write_key_to_file(c->filename, c);
else
{
- GNUNET_asprintf(&c->filename, "%s/%s.zone", zonefile_directory, GNUNET_h2s_full (&c->zone));
+ GNUNET_asprintf(&c->filename, "%s/%s.zkey", zonefile_directory, GNUNET_h2s_full (&c->zone));
write_key_to_file(c->filename, c);
}
/* found result */
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found results: name is `%s', has %u records\n", name, rd_count);
res = GNUNET_YES;
- name_len = strlen (name);
+ name_len = strlen (name) +1;
}
else
{
struct ZoneIterationStartMessage * zis_msg = (struct ZoneIterationStartMessage *) message;
struct GNUNET_NAMESTORE_Client *nc;
struct GNUNET_NAMESTORE_ZoneIteration *zi;
- int res;
nc = client_lookup(client);
if (nc == NULL)
GNUNET_CONTAINER_DLL_insert (nc->op_head, nc->op_tail, zi);
- res = GSN_database->iterate_records (GSN_database->cls, zone_tmp , NULL, zi->offset , &zone_iteration_proc, zi);
+ GSN_database->iterate_records (GSN_database->cls, zone_tmp , NULL, zi->offset , &zone_iteration_proc, zi);
GNUNET_SERVER_receive_done (client, GNUNET_OK);
}
int zonekey_file_it (void *cls, const char *filename)
{
int *counter = cls;
- if ((filename != NULL) && (NULL != strstr(filename, ".zone")))
+ if ((filename != NULL) && (NULL != strstr(filename, ".zkey")))
{
struct GNUNET_CRYPTO_RsaPrivateKey * privkey;
struct GNUNET_NAMESTORE_CryptoContainer *c;