diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-30 19:21:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-30 19:21:05 +0000 |
commit | 17de5c9d798109f55059190c886609ba377e4eb6 (patch) | |
tree | 07f2b4241f433b18baf02d5bf189307ad2308166 /src/namestore/test_namestore_api_zone_iteration_stop.c | |
parent | fd87b25438487e1215c68bdb9f1bcac2d7012bc2 (diff) | |
download | gnunet-17de5c9d798109f55059190c886609ba377e4eb6.tar.gz gnunet-17de5c9d798109f55059190c886609ba377e4eb6.zip |
-towards implementing improved namestore API
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index 666e09ee8..9c1829e91 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -407,7 +407,8 @@ run (void *cls, | |||
407 | s_rd_1 = create_record(1); | 407 | s_rd_1 = create_record(1); |
408 | et.abs_value = s_rd_1[0].expiration_time; | 408 | et.abs_value = s_rd_1[0].expiration_time; |
409 | sig_1 = GNUNET_NAMESTORE_create_signature(privkey, et, s_name_1, s_rd_1, 1); | 409 | sig_1 = GNUNET_NAMESTORE_create_signature(privkey, et, s_name_1, s_rd_1, 1); |
410 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_1, s_rd_1, &put_cont, NULL); | 410 | GNUNET_NAMESTORE_record_put_by_authority (nsh, privkey, s_name_1, |
411 | 1, s_rd_1, &put_cont, NULL); | ||
411 | 412 | ||
412 | 413 | ||
413 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 2 \n"); | 414 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 2 \n"); |
@@ -416,7 +417,8 @@ run (void *cls, | |||
416 | 417 | ||
417 | et.abs_value = s_rd_2[0].expiration_time; | 418 | et.abs_value = s_rd_2[0].expiration_time; |
418 | sig_2 = GNUNET_NAMESTORE_create_signature(privkey, et, s_name_2, s_rd_2, 1); | 419 | sig_2 = GNUNET_NAMESTORE_create_signature(privkey, et, s_name_2, s_rd_2, 1); |
419 | GNUNET_NAMESTORE_record_create(nsh, privkey, s_name_2, s_rd_2, &put_cont, NULL); | 420 | GNUNET_NAMESTORE_record_put_by_authority (nsh, privkey, s_name_2, |
421 | 1, s_rd_2, &put_cont, NULL); | ||
420 | 422 | ||
421 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n"); | 423 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created record 3\n"); |
422 | /* name in different zone */ | 424 | /* name in different zone */ |