summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-16 17:44:44 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-16 17:44:44 +0200
commit45d490b333ac72b33684c94ac5b48b7925b7ccac (patch)
tree8516410b61e978c563331ca0bb7061241fdcc9d5
parentcde9403a6cc6bc03e571c872cdee205bbd838c31 (diff)
-formatting tvgs
-rw-r--r--src/gnsrecord/gnunet-gnsrecord-tvg.c4
-rw-r--r--src/revocation/gnunet-revocation-tvg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c
index 6e6f6414c..c29f377bc 100644
--- a/src/gnsrecord/gnunet-gnsrecord-tvg.c
+++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c
@@ -104,10 +104,10 @@ run (void *cls,
GNUNET_IDENTITY_key_get_public (&id_priv,
&id_pub);
fprintf (stdout, "Zone private key (d, little-endian scalar):\n");
- print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 0); //FIXME length for privkey?
+ print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 8); //FIXME length for privkey?
fprintf (stdout, "\n");
fprintf (stdout, "Zone public key (zk):\n");
- print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 0);
+ print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 8);
fprintf (stdout, "\n");
pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY);
diff --git a/src/revocation/gnunet-revocation-tvg.c b/src/revocation/gnunet-revocation-tvg.c
index 1692472bb..88117dd3f 100644
--- a/src/revocation/gnunet-revocation-tvg.c
+++ b/src/revocation/gnunet-revocation-tvg.c
@@ -76,10 +76,10 @@ run (void *cls,
GNUNET_IDENTITY_key_get_public (&id_priv,
&id_pub);
fprintf (stdout, "Zone private key (d, little-endian scalar):\n");
- print_bytes (&id_priv, sizeof(id_priv), 0);
+ print_bytes (&id_priv, sizeof(id_priv), 8);
fprintf (stdout, "\n");
fprintf (stdout, "Zone public key (zk):\n");
- print_bytes (&id_pub, sizeof(id_pub), 0);
+ print_bytes (&id_pub, sizeof(id_pub), 8);
fprintf (stdout, "\n");
pow = GNUNET_malloc (GNUNET_REVOCATION_MAX_PROOF_SIZE);
GNUNET_REVOCATION_pow_init (&id_priv,