Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+
+
/**
* @file gns/test_gns_ns_lookup.c
* @brief base testcase for testing a local GNS record lookup through NS
#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 20)
/**
- * Name to resolve for testing. NS record on 'homepage.gads' redirects to
+ * Name to resolve for testing. NS record on 'homepage.gnu' redirects to
* DNS 'TEST_RECORD_NS' domain and thus names should be resolved within
* that target domain.
*/
-#define TEST_DOMAIN "www.homepage.gads"
+#define TEST_DOMAIN "www.homepage.gnu"
/**
- * Name to resolve for testing. NS record on 'homepage.gads' redirects to
+ * Name to resolve for testing. NS record on 'homepage.gnu' redirects to
* DNS 'TEST_RECORD_NS' domain and thus names should be resolved within
* that target domain.
*/
-#define TEST_DOMAIN_ALT "homepage.gads"
+#define TEST_DOMAIN_ALT "homepage.gnu"
/**
- * Name to resolve for testing. NS record on 'homepage.gads' redirects to
+ * Name to resolve for testing. NS record on 'homepage.gnu' redirects to
* DNS 'TEST_RECORD_NS' domain and thus names should be resolved within
* that target domain.
*/
-#define TEST_DOMAIN_ALT2 "uk.homepage.gads"
+#define TEST_DOMAIN_ALT2 "uk.homepage.gnu"
/**
* Expected test value (matching TEST_DOMAIN_ALT2).
}
if (NULL != alice_key)
{
- GNUNET_CRYPTO_ecc_key_free (alice_key);
+ GNUNET_free (alice_key);
alice_key = NULL;
}
GNUNET_break (0);
}
if (NULL != alice_key)
{
- GNUNET_CRYPTO_ecc_key_free (alice_key);
+ GNUNET_free (alice_key);
alice_key = NULL;
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down peer!\n");
const struct GNUNET_CONFIGURATION_Handle *ccfg,
struct GNUNET_TESTING_Peer *peer)
{
- struct GNUNET_CRYPTO_EccPublicKey alice_pkey;
+ struct GNUNET_CRYPTO_EccPublicSignKey alice_pkey;
char* alice_keyfile;
struct GNUNET_NAMESTORE_RecordData rd[2];
struct in_addr ns;
}
alice_key = GNUNET_CRYPTO_ecc_key_create_from_file (alice_keyfile);
- GNUNET_CRYPTO_ecc_key_get_public (alice_key, &alice_pkey);
+ GNUNET_CRYPTO_ecc_key_get_public_for_signature (alice_key, &alice_pkey);
GNUNET_free (alice_keyfile);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
rd[0].data_size = sizeof (struct in_addr);
rd[0].data = &ns;
rd[0].record_type = GNUNET_DNSPARSER_TYPE_A;
- rd[0].flags = GNUNET_NAMESTORE_RF_AUTHORITY;
+ rd[0].flags = GNUNET_NAMESTORE_RF_NONE;
rd[1].expiration_time = UINT64_MAX;
rd[1].data_size = strlen (TEST_RECORD_NS);
rd[1].data = TEST_RECORD_NS;
rd[1].record_type = GNUNET_DNSPARSER_TYPE_NS;
- rd[1].flags = GNUNET_NAMESTORE_RF_AUTHORITY;
+ rd[1].flags = GNUNET_NAMESTORE_RF_NONE;
qe = GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
alice_key,