GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Could not connect to DHT!\n");
}
+ auto_import_pkey = GNUNET_NO;
+
if (GNUNET_YES ==
GNUNET_CONFIGURATION_get_value_yesno (c, "gns",
"AUTO_IMPORT_PKEY"))
}
}
- //put_some_records(); //FIXME for testing
-
/**
* Schedule periodic put
* for our records
* continue with next authority
*/
next_authority = rh->authority_chain_head;
- // strlen(next_authority->name) + 2);
- memset(next_authority_name, 0, strlen(rh->name)+
- strlen(next_authority->name) + 2);
+
GNUNET_snprintf(next_authority_name, MAX_DNS_NAME_LENGTH,
"%s.%s", rh->name, next_authority->name);
- //strcpy(next_authority_name, rh->name);
- //strcpy(next_authority_name+strlen(rh->name)+1, ".");
- //strcpy(next_authority_name+strlen(rh->name)+2, next_authority->name);
strcpy(rh->name, next_authority_name);
GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
}
/**
- * DHT resolution for delegation finished. Processing result.
+ * DHT resolution for delegation. Processing result.
*
* @param cls the closure
* @param rh resolver handle
- * @param rd_count number of results (always 0)
- * @param rd record data (always NULL)
+ * @param rd_count number of results
+ * @param rd record data
*/
static void
handle_delegation_dht_bg_shorten(void* cls, struct ResolverHandle *rh,
/* Start delegation resolution in our namestore */
resolve_delegation_ns(rh);
}
-
+
+
/**
* Shorten api from resolver
*