diff options
Diffstat (limited to 'src/gnsrecord/gnunet-gnsrecord-tvg.c')
-rw-r--r-- | src/gnsrecord/gnunet-gnsrecord-tvg.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c index 3804ad458..1af1a2920 100644 --- a/src/gnsrecord/gnunet-gnsrecord-tvg.c +++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c | |||
@@ -109,6 +109,7 @@ run_pkey (void) | |||
109 | struct GNUNET_IDENTITY_PublicKey id_pub; | 109 | struct GNUNET_IDENTITY_PublicKey id_pub; |
110 | struct GNUNET_IDENTITY_PrivateKey pkey_data_p; | 110 | struct GNUNET_IDENTITY_PrivateKey pkey_data_p; |
111 | struct GNUNET_IDENTITY_PublicKey pkey_data; | 111 | struct GNUNET_IDENTITY_PublicKey pkey_data; |
112 | struct GNUNET_HashCode query; | ||
112 | void *data; | 113 | void *data; |
113 | size_t data_size; | 114 | size_t data_size; |
114 | char *rdata; | 115 | char *rdata; |
@@ -200,6 +201,12 @@ run_pkey (void) | |||
200 | fprintf (stdout, "Encryption key (K):\n"); | 201 | fprintf (stdout, "Encryption key (K):\n"); |
201 | print_bytes (skey, sizeof (skey), 8); | 202 | print_bytes (skey, sizeof (skey), 8); |
202 | fprintf (stdout, "\n"); | 203 | fprintf (stdout, "\n"); |
204 | GNUNET_GNSRECORD_query_from_public_key (&id_pub, | ||
205 | TEST_RECORD_LABEL, | ||
206 | &query); | ||
207 | fprintf (stdout, "Storage key (q):\n"); | ||
208 | print_bytes (&query, sizeof (query), 8); | ||
209 | fprintf (stdout, "\n"); | ||
203 | 210 | ||
204 | rrblock = GNUNET_GNSRECORD_block_create (&id_priv, | 211 | rrblock = GNUNET_GNSRECORD_block_create (&id_priv, |
205 | expire, | 212 | expire, |
@@ -249,6 +256,7 @@ run_edkey (void) | |||
249 | struct GNUNET_IDENTITY_PublicKey id_pub; | 256 | struct GNUNET_IDENTITY_PublicKey id_pub; |
250 | struct GNUNET_IDENTITY_PrivateKey pkey_data_p; | 257 | struct GNUNET_IDENTITY_PrivateKey pkey_data_p; |
251 | struct GNUNET_IDENTITY_PublicKey pkey_data; | 258 | struct GNUNET_IDENTITY_PublicKey pkey_data; |
259 | struct GNUNET_HashCode query; | ||
252 | void *data; | 260 | void *data; |
253 | size_t data_size; | 261 | size_t data_size; |
254 | char *rdata; | 262 | char *rdata; |
@@ -345,6 +353,12 @@ run_edkey (void) | |||
345 | fprintf (stdout, "Encryption key (K):\n"); | 353 | fprintf (stdout, "Encryption key (K):\n"); |
346 | print_bytes (skey, sizeof (skey), 8); | 354 | print_bytes (skey, sizeof (skey), 8); |
347 | fprintf (stdout, "\n"); | 355 | fprintf (stdout, "\n"); |
356 | GNUNET_GNSRECORD_query_from_public_key (&id_pub, | ||
357 | TEST_RECORD_LABEL, | ||
358 | &query); | ||
359 | fprintf (stdout, "Storage key (q):\n"); | ||
360 | print_bytes (&query, sizeof (query), 8); | ||
361 | fprintf (stdout, "\n"); | ||
348 | 362 | ||
349 | rrblock = GNUNET_GNSRECORD_block_create (&id_priv, | 363 | rrblock = GNUNET_GNSRECORD_block_create (&id_priv, |
350 | expire, | 364 | expire, |