add logic to handle SRV/DANE names (#3003 and 2526) in GNS resolver
[oweals/gnunet.git] / src / gns / test_gns_proxy.c
index 66a2eb091de72dd5684449731dc155158088276c..9e2c29fb44aeb60c85bc93b5899096feb87a1eb2 100644 (file)
@@ -365,7 +365,7 @@ run (void *cls,
 {
   enum MHD_FLAG flags;
   struct GNUNET_CRYPTO_EcdsaPrivateKey *host_key;
-  struct GNUNET_NAMESTORE_RecordData rd;
+  struct GNUNET_GNSRECORD_Data rd;
   char *zone_keyfile;
 
   namestore = GNUNET_NAMESTORE_connect (cfg);
@@ -401,6 +401,7 @@ run (void *cls,
                                         GNUNET_OS_INHERIT_STD_ALL,
                                         NULL,
                                         NULL,
+                                        NULL,
                                         "gnunet-gns-proxy",
                                         "gnunet-gns-proxy",
                                         "-c", tmp_cfgfile, NULL);
@@ -423,7 +424,7 @@ run (void *cls,
 
   host_key = GNUNET_CRYPTO_ecdsa_key_create_from_file (zone_keyfile);
   rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
-  GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_DNSPARSER_TYPE_A,
+  GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_string_to_value (GNUNET_DNSPARSER_TYPE_A,
                                                                "127.0.0.1",
                                                                (void**)&rd.data,
                                                                &rd.data_size));