diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-01 21:10:09 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-01 21:10:09 +0100 |
commit | ad6bc2037ffee49f6df1a3ac87fa507581af2365 (patch) | |
tree | b9fe5afc2bc1c0887bfd0b194c19c71ace21a21b /src/revocation/gnunet-revocation-tvg.c | |
parent | 4f07822ff0f5c13ff6052f531da249363d5116f8 (diff) | |
download | gnunet-ad6bc2037ffee49f6df1a3ac87fa507581af2365.tar.gz gnunet-ad6bc2037ffee49f6df1a3ac87fa507581af2365.zip |
- add plaintext message to revocation tvg
Diffstat (limited to 'src/revocation/gnunet-revocation-tvg.c')
-rw-r--r-- | src/revocation/gnunet-revocation-tvg.c | 10 |
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, |