diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-09 14:14:01 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-09 14:14:01 +0000 |
commit | 5e828dc0248330d772913795257b3fda14fe9552 (patch) | |
tree | 362ecdb95dcb89c56a7f20d31b06efa7351fe8ba /src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |
parent | 780fdda9a42441ecf36482461ebd35e4ec5c7510 (diff) | |
download | gnunet-5e828dc0248330d772913795257b3fda14fe9552.tar.gz gnunet-5e828dc0248330d772913795257b3fda14fe9552.zip |
- changes to signing verfifying: includes block expiration
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_specific_zone.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_specific_zone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c index 4b0ce817f..ae8e2da5c 100644 --- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c +++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |||
@@ -396,7 +396,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
396 | 396 | ||
397 | GNUNET_asprintf(&s_name_1, "dummy1"); | 397 | GNUNET_asprintf(&s_name_1, "dummy1"); |
398 | s_rd_1 = create_record(1); | 398 | s_rd_1 = create_record(1); |
399 | sig_1 = GNUNET_NAMESTORE_create_signature(privkey, s_name_1, s_rd_1, 1); | 399 | sig_1 = GNUNET_NAMESTORE_create_signature(privkey, s_rd_1[0].expiration ,s_name_1, s_rd_1, 1); |
400 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_1, s_rd_1, &put_cont, NULL); | 400 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_1, s_rd_1, &put_cont, NULL); |
401 | 401 | ||
402 | 402 | ||
@@ -404,14 +404,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
404 | GNUNET_asprintf(&s_name_2, "dummy2"); | 404 | GNUNET_asprintf(&s_name_2, "dummy2"); |
405 | s_rd_2 = create_record(1); | 405 | s_rd_2 = create_record(1); |
406 | 406 | ||
407 | sig_2 = GNUNET_NAMESTORE_create_signature(privkey, s_name_2, s_rd_2, 1); | 407 | sig_2 = GNUNET_NAMESTORE_create_signature(privkey, s_rd_2[0].expiration, s_name_2, s_rd_2, 1); |
408 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_2, s_rd_2, &put_cont, NULL); | 408 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_2, s_rd_2, &put_cont, NULL); |
409 | 409 | ||
410 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n"); | 410 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n"); |
411 | /* name in different zone */ | 411 | /* name in different zone */ |
412 | GNUNET_asprintf(&s_name_3, "dummy3"); | 412 | GNUNET_asprintf(&s_name_3, "dummy3"); |
413 | s_rd_3 = create_record(1); | 413 | s_rd_3 = create_record(1); |
414 | sig_3 = GNUNET_NAMESTORE_create_signature(privkey, s_name_3, s_rd_3, 1); | 414 | sig_3 = GNUNET_NAMESTORE_create_signature(privkey, s_rd_3[0].expiration, s_name_3, s_rd_3, 1); |
415 | GNUNET_NAMESTORE_record_put (nsh, &pubkey2, s_name_3, GNUNET_TIME_absolute_get_forever(), 1, s_rd_3, sig_3, &put_cont, NULL); | 415 | GNUNET_NAMESTORE_record_put (nsh, &pubkey2, s_name_3, GNUNET_TIME_absolute_get_forever(), 1, s_rd_3, sig_3, &put_cont, NULL); |
416 | } | 416 | } |
417 | 417 | ||