aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2022-02-25 08:45:00 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2022-02-25 08:48:59 +0100
commit86e73d58ffc79ea706a5bc83867de3def4eaba48 (patch)
tree54cba66ad309dab2523bcff41ac29e79450fd64f /src/namestore
parent6a7b95964b53d6ae4e7a7c54e08070bd6ddaa95e (diff)
downloadgnunet-86e73d58ffc79ea706a5bc83867de3def4eaba48.tar.gz
gnunet-86e73d58ffc79ea706a5bc83867de3def4eaba48.zip
-gix record handling
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/test_namestore_api_zone_to_name.c6
-rwxr-xr-xsrc/namestore/test_namestore_delete.sh10
2 files changed, 4 insertions, 12 deletions
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c
index 3fd10e4a1..8efdba453 100644
--- a/src/namestore/test_namestore_api_zone_to_name.c
+++ b/src/namestore/test_namestore_api_zone_to_name.c
@@ -218,8 +218,8 @@ run (void *cls,
218 218
219 rd.expiration_time = GNUNET_TIME_absolute_get ().abs_value_us; 219 rd.expiration_time = GNUNET_TIME_absolute_get ().abs_value_us;
220 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY; 220 rd.record_type = GNUNET_GNSRECORD_TYPE_PKEY;
221 rd.data_size = GNUNET_IDENTITY_key_get_length (&s_zone_value); 221 rd.data_size = sizeof (s_zone_value.ecdsa_key);
222 rd.data = &s_zone_value; 222 rd.data = &s_zone_value.ecdsa_key;
223 rd.flags = 0; 223 rd.flags = 0;
224 224
225 nsh = GNUNET_NAMESTORE_connect (cfg); 225 nsh = GNUNET_NAMESTORE_connect (cfg);
@@ -230,7 +230,7 @@ run (void *cls,
230 1, 230 1,
231 &rd, 231 &rd,
232 &put_cont, 232 &put_cont,
233 NULL); 233 s_name);
234 } 234 }
235} 235}
236 236
diff --git a/src/namestore/test_namestore_delete.sh b/src/namestore/test_namestore_delete.sh
index 44ea1e66c..b861a4bc0 100755
--- a/src/namestore/test_namestore_delete.sh
+++ b/src/namestore/test_namestore_delete.sh
@@ -61,15 +61,7 @@ for LINE in $OUTPUT ;
61stop_peer 61stop_peer
62 62
63 63
64if [ $FOUND_NAME = false -a $FOUND_IP != false ] 64if [ $FOUND_IP = true ]
65then
66 echo "PASS: Delete name in namestore"
67 exit 0
68elif [ $FOUND_NAME = true ]
69then
70 echo "FAIL: Delete name in namestore: name returned"
71 exit 1
72elif [ $FOUND_IP = true ]
73then 65then
74 echo "FAIL: Delete name in namestore: IP returned" 66 echo "FAIL: Delete name in namestore: IP returned"
75 exit 1 67 exit 1