diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-29 18:06:26 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-29 18:06:26 +0900 |
commit | 0f2da4636e108c70697c589d9e38781f2bafefba (patch) | |
tree | 0e831befd71d4323596cdae55e8431df7720c531 /src/revocation/gnunet-revocation-tvg.c | |
parent | 4e2259f14be320c8e2fe2a672a473e09677269c4 (diff) | |
download | gnunet-0f2da4636e108c70697c589d9e38781f2bafefba.tar.gz gnunet-0f2da4636e108c70697c589d9e38781f2bafefba.zip |
IDENTITY
This commit is a major rework of the unclean GNUNET_IDENTITY_*Key
structures and its use in serialized objects (e.g. RPC messages).
The structures are now no longer to be used directly but instead through
their serialization helper functions whenever needed.
Diffstat (limited to 'src/revocation/gnunet-revocation-tvg.c')
-rw-r--r-- | src/revocation/gnunet-revocation-tvg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revocation/gnunet-revocation-tvg.c b/src/revocation/gnunet-revocation-tvg.c index 682f41530..a126709ce 100644 --- a/src/revocation/gnunet-revocation-tvg.c +++ b/src/revocation/gnunet-revocation-tvg.c | |||
@@ -115,14 +115,14 @@ run (void *cls, | |||
115 | GNUNET_IDENTITY_key_get_public (&id_priv, | 115 | GNUNET_IDENTITY_key_get_public (&id_priv, |
116 | &id_pub); | 116 | &id_pub); |
117 | GNUNET_STRINGS_data_to_string (&id_pub, | 117 | GNUNET_STRINGS_data_to_string (&id_pub, |
118 | GNUNET_IDENTITY_key_get_length (&id_pub), | 118 | GNUNET_IDENTITY_public_key_get_length (&id_pub), |
119 | ztld, | 119 | ztld, |
120 | sizeof (ztld)); | 120 | sizeof (ztld)); |
121 | fprintf (stdout, "Zone private key (d, big-endian scalar):\n"); | 121 | fprintf (stdout, "Zone private key (d, big-endian scalar):\n"); |
122 | print_bytes_ (&id_priv.ecdsa_key, sizeof(id_priv.ecdsa_key), 8, 1); | 122 | print_bytes_ (&id_priv.ecdsa_key, sizeof(id_priv.ecdsa_key), 8, 1); |
123 | fprintf (stdout, "\n"); | 123 | fprintf (stdout, "\n"); |
124 | fprintf (stdout, "Zone identifier (ztype|zkey):\n"); | 124 | fprintf (stdout, "Zone identifier (ztype|zkey):\n"); |
125 | key_len = GNUNET_IDENTITY_key_get_length (&id_pub); | 125 | key_len = GNUNET_IDENTITY_public_key_get_length (&id_pub); |
126 | GNUNET_assert (0 < key_len); | 126 | GNUNET_assert (0 < key_len); |
127 | print_bytes (&id_pub, key_len, 8); | 127 | print_bytes (&id_pub, key_len, 8); |
128 | fprintf (stdout, "\n"); | 128 | fprintf (stdout, "\n"); |