diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-10-16 09:48:03 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-10-16 09:48:03 +0200 |
commit | 4bf09d00f1aeb0586f14587dfa455a0a5b902eda (patch) | |
tree | 7d40dd74b1303e66f52668d6cc659bd2657232fd /src/gnsrecord | |
parent | ffd4382a73e2fa1d99812df14ed1025fadeb4017 (diff) | |
download | gnunet-4bf09d00f1aeb0586f14587dfa455a0a5b902eda.tar.gz gnunet-4bf09d00f1aeb0586f14587dfa455a0a5b902eda.zip |
- fix tvgs; expose alternative identity type
Diffstat (limited to 'src/gnsrecord')
-rw-r--r-- | src/gnsrecord/gnunet-gnsrecord-tvg.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
104 | GNUNET_IDENTITY_key_get_public (&id_priv, | 104 | GNUNET_IDENTITY_key_get_public (&id_priv, |
105 | &id_pub); | 105 | &id_pub); |
106 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); | 106 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); |
107 | print_bytes (&id_priv, sizeof(id_priv), 0); | 107 | print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 0); //FIXME length for privkey? |
108 | fprintf (stdout, "\n"); | 108 | fprintf (stdout, "\n"); |
109 | fprintf (stdout, "Zone public key (zk):\n"); | 109 | fprintf (stdout, "Zone public key (zk):\n"); |
110 | print_bytes (&id_pub, sizeof(id_pub), 0); | 110 | print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 0); |
111 | fprintf (stdout, "\n"); | 111 | fprintf (stdout, "\n"); |
112 | 112 | ||
113 | pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); | 113 | pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); |