aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-revocation-tvg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/gnunet-revocation-tvg.c')
-rw-r--r--src/revocation/gnunet-revocation-tvg.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/revocation/gnunet-revocation-tvg.c b/src/revocation/gnunet-revocation-tvg.c
index f1d4b0334..3ba5b56fa 100644
--- a/src/revocation/gnunet-revocation-tvg.c
+++ b/src/revocation/gnunet-revocation-tvg.c
@@ -29,6 +29,7 @@
29#include "gnunet_revocation_service.h" 29#include "gnunet_revocation_service.h"
30#include "gnunet_dnsparser_lib.h" 30#include "gnunet_dnsparser_lib.h"
31#include "gnunet_testing_lib.h" 31#include "gnunet_testing_lib.h"
32#include "revocation.h"
32#include <inttypes.h> 33#include <inttypes.h>
33 34
34#define TEST_EPOCHS 2 35#define TEST_EPOCHS 2
@@ -140,6 +141,15 @@ run (void *cls,
140 { 141 {
141 pow_passes++; 142 pow_passes++;
142 } 143 }
144 struct GNUNET_REVOCATION_SignaturePurposePS *purp;
145 purp = REV_create_signature_message (pow);
146 fprintf (stdout, "Signed message:\n");
147 print_bytes (purp,
148 ntohl (purp->purpose.size),
149 8);
150 printf ("\n");
151 GNUNET_free (purp);
152
143 exp = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 153 exp = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS,
144 TEST_EPOCHS); 154 TEST_EPOCHS);
145 GNUNET_assert (GNUNET_OK == GNUNET_REVOCATION_check_pow (pow, 155 GNUNET_assert (GNUNET_OK == GNUNET_REVOCATION_check_pow (pow,