diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2022-02-25 08:45:00 +0100 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2022-02-25 08:48:59 +0100 |
commit | 86e73d58ffc79ea706a5bc83867de3def4eaba48 (patch) | |
tree | 54cba66ad309dab2523bcff41ac29e79450fd64f /src/namestore | |
parent | 6a7b95964b53d6ae4e7a7c54e08070bd6ddaa95e (diff) | |
download | gnunet-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.c | 6 | ||||
-rwxr-xr-x | src/namestore/test_namestore_delete.sh | 10 |
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 ; | |||
61 | stop_peer | 61 | stop_peer |
62 | 62 | ||
63 | 63 | ||
64 | if [ $FOUND_NAME = false -a $FOUND_IP != false ] | 64 | if [ $FOUND_IP = true ] |
65 | then | ||
66 | echo "PASS: Delete name in namestore" | ||
67 | exit 0 | ||
68 | elif [ $FOUND_NAME = true ] | ||
69 | then | ||
70 | echo "FAIL: Delete name in namestore: name returned" | ||
71 | exit 1 | ||
72 | elif [ $FOUND_IP = true ] | ||
73 | then | 65 | then |
74 | echo "FAIL: Delete name in namestore: IP returned" | 66 | echo "FAIL: Delete name in namestore: IP returned" |
75 | exit 1 | 67 | exit 1 |