{
GNUNET_GNS_disconnect(gns_handle);
+
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "disconnecting from namestore\n");
+ GNUNET_NAMESTORE_disconnect (namestore_handle);
ok = 0;
if (aname == NULL)
{
-
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "disconnecting from namestore\n");
- GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_YES);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"connecting to gns\n");
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &bob_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
- rd.flags = 0;
+ rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
/* put bob into our zone */
GNUNET_NAMESTORE_record_create (namestore_handle,
NULL);
GNUNET_free(sig);
-
+ GNUNET_CRYPTO_rsa_key_free (alice_key);
+ GNUNET_CRYPTO_rsa_key_free (bob_key);
+ GNUNET_CRYPTO_rsa_key_free (our_key);
}
static void