From 4bf09d00f1aeb0586f14587dfa455a0a5b902eda Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 16 Oct 2020 09:48:03 +0200 Subject: - fix tvgs; expose alternative identity type --- src/gnsrecord/gnunet-gnsrecord-tvg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gnsrecord') diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c index 7c28a18d0..6e6f6414c 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, sizeof(id_priv), 0); + print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 0); //FIXME length for privkey? fprintf (stdout, "\n"); fprintf (stdout, "Zone public key (zk):\n"); - print_bytes (&id_pub, sizeof(id_pub), 0); + print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 0); fprintf (stdout, "\n"); pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); -- cgit v1.2.3