-fixed record flags in tests. proper expiration from NS missing
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Wed, 20 Jun 2012 08:53:37 +0000 (08:53 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Wed, 20 Jun 2012 08:53:37 +0000 (08:53 +0000)
14 files changed:
src/gns/gnunet-service-gns_resolver.c
src/gns/plugin_block_gns.c
src/gns/test_gns_cname_lookup.c
src/gns/test_gns_dht_threepeer.c
src/gns/test_gns_max_queries.c
src/gns/test_gns_ns_lookup.c
src/gns/test_gns_pseu_shorten.c
src/gns/test_gns_revocation.c
src/gns/test_gns_simple_delegated_lookup.c
src/gns/test_gns_simple_get_authority.c
src/gns/test_gns_simple_lookup.c
src/gns/test_gns_simple_mx_lookup.c
src/gns/test_gns_simple_shorten.c
src/gns/test_gns_simple_zkey_lookup.c

index 8d82fa8adf01ab4de793c345e07fe0396ff5694f..16d6126cb9645cde8a7ef3f1611999e1c3932dac 100644 (file)
@@ -3140,9 +3140,9 @@ process_delegation_result_ns (void* cls,
                                     &process_pkey_revocation_result_ns,
                                     rh);
     return;
-    
+  
   }
-    
+  
   /**
    * no answers found
    */
index f033811ee55832f0d95b9a667582a5c8e880f1f7..f1888c71a793fe2c67977f5a0202d1897221dd35 100644 (file)
@@ -145,7 +145,6 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
     {
       GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
                  "Data invalid (%d bytes, %d records)\n", rd_len, rd_count);
-      GNUNET_break_op (0);
       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
     }
 
@@ -180,7 +179,6 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
                                                         &nrb->signature))
     {
       GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Signature invalid for name %s\n");
-      GNUNET_break_op (0);
       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
     }
   }
index 3e79f5d135a7a8589a8f64c914a26c7a1bc18ca5..ed04fbcd0a6adf5e50d57323c24cd2a87aa6e108 100644 (file)
@@ -269,6 +269,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct in_addr);
   rd.data = web;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index 3cd565e8e6c028bdb11a3b4b9506777c0e10c672..cfb8a3b4cf05089948477dbb8ce76e16262e9c3a 100644 (file)
@@ -327,6 +327,7 @@ daemon_started (void *cls, const struct GNUNET_PeerIdentity *id,
     rd.data_size = sizeof(struct in_addr);
     rd.data = web;
     rd.record_type = GNUNET_GNS_RECORD_TYPE_A;
+    rd.flags = 0;
 
     GNUNET_NAMESTORE_record_create (ns, key, "www", &rd, NULL, NULL);
 
@@ -367,6 +368,7 @@ daemon_started (void *cls, const struct GNUNET_PeerIdentity *id,
     rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
     rd.data = &dave_hash;
     rd.record_type = GNUNET_GNS_RECORD_PKEY;
+    rd.flags = 0;
 
     GNUNET_NAMESTORE_record_create (ns, key, "buddy", &rd, ns_create_cont, ns);
 
@@ -400,6 +402,7 @@ daemon_started (void *cls, const struct GNUNET_PeerIdentity *id,
     rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
     rd.data = &bob_hash;
     rd.record_type = GNUNET_GNS_RECORD_PKEY;
+    rd.flags = 0;
 
     GNUNET_NAMESTORE_record_create (ns, key, "bob", &rd, ns_create_cont, ns);
 
index 9ac24a3f62052eb1967dc9f5b968a48f5dd56c75..5486dfb2c20fd0de9d1571914c56bd29ce2d2c9a 100644 (file)
@@ -278,6 +278,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct in_addr);
   rd.data = web;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index 146c5777fd5dbcb4370ab6e6739b427e5c1d6e37..a46b45fc9fd26b448b49c51f12931f553551c7ec 100644 (file)
@@ -323,6 +323,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct in_addr);
   rd.data = ns;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
+  rd.flags = 0;
 
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
index e12c010f14f0ca709b20d69b6f74af239e29ea46..cedf3930dbbee69d0f01c044d88afe5092a872b2 100644 (file)
@@ -293,6 +293,7 @@ put_pseu_dht(void *cls, int success)
   rd.data_size = strlen(TEST_PSEU_ALICE)+1;
   rd.data = TEST_PSEU_ALICE;
   rd.record_type = GNUNET_GNS_RECORD_PSEU;
+  rd.flags = 0;
 
   sig = GNUNET_NAMESTORE_create_signature(alice_key,
                                           GNUNET_TIME_UNIT_FOREVER_ABS,
@@ -374,7 +375,8 @@ put_www_dht(void *cls, int success)
   rd.data_size = sizeof(struct in_addr);
   rd.data = web;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
-
+  rd.flags = 0;
+  
   sig = GNUNET_NAMESTORE_create_signature(alice_key,
                                           GNUNET_TIME_UNIT_FOREVER_ABS,
                                           TEST_RECORD_NAME,
@@ -451,7 +453,8 @@ put_pkey_dht(void *cls, int32_t success, const char *emsg)
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &alice_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
-
+  rd.flags = 0;
+  
   sig = GNUNET_NAMESTORE_create_signature(bob_key,
                                           GNUNET_TIME_UNIT_FOREVER_ABS,
                                           TEST_AUTHORITY_ALICE,
@@ -519,7 +522,8 @@ fin_init_zone (void *cls, int32_t success, const char *emsg)
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
-
+  rd.flags = 0;
+  
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   our_key,
                                   TEST_AUTHORITY_BOB,
@@ -538,6 +542,7 @@ cont_init_zone (void *cls, int32_t success, const char *emsg)
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &short_zone;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   priv_key,
@@ -633,6 +638,7 @@ do_lookup (void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &priv_zone;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   our_key,
index b055ef3e3468a9f7632f0771b8ee9dd7e1ce4d62..dd5c294e4021c82133cc69d907f780a3c54ade79 100644 (file)
@@ -234,6 +234,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index c8066fb0c7f5bdbba44004eae4a3faa6a80866e5..189cb7de29d3b96d2c45911e91d56ac2b54bfd58 100644 (file)
@@ -249,6 +249,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index 76a4c4534ffb12ce553fb0ce5be17f0bf4abd02d..307e2cf7817cd7f1f45e64e3d665fb0a02a4b675 100644 (file)
@@ -244,6 +244,7 @@ do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
   
   /* put bob into our zone */
   GNUNET_NAMESTORE_record_create (namestore_handle,
index bd6501b241fcc25144466678c3a293dbca04ef09..631130ea6508e773e240c0c9fc306ffc39be2b8b 100644 (file)
@@ -227,6 +227,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct in_addr);
   rd.data = web;
   rd.record_type = GNUNET_DNSPARSER_TYPE_A;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index 38026fdcca541253eca19b0850913f4260926d59..294329e60abc40f3c0ec3aa929c631939d3943e5 100644 (file)
@@ -268,6 +268,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,
index 8dd813f6d417f3dd5cfe95a7777b2c2f15f49f2d..c4e196b6002bee3dbd5084da7b767689b71dc3df 100644 (file)
@@ -244,6 +244,7 @@ do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
   
   /* put bob into our zone */
   GNUNET_NAMESTORE_record_create (namestore_handle,
index 3c54a149d3427f194788a32cdabf0f651b49b6bf..3a0496404dd76db9f7cb24e2ef573ff477b9456c 100644 (file)
@@ -251,6 +251,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
   rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
   rd.data = &bob_hash;
   rd.record_type = GNUNET_GNS_RECORD_PKEY;
+  rd.flags = 0;
 
   GNUNET_NAMESTORE_record_create (namestore_handle,
                                   alice_key,