diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-07-04 15:37:49 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-07-04 15:37:49 +0200 |
commit | 1ad016428ad6fe760a6713938f0d375e38e0de04 (patch) | |
tree | 505700bed5d4951524d2c7edba4cbae0dd780282 /src/revocation/gnunet-revocation-tvg.c | |
parent | 5b7f489a7d40fb8565e05c229d1536d059c249cf (diff) | |
download | gnunet-1ad016428ad6fe760a6713938f0d375e38e0de04.tar.gz gnunet-1ad016428ad6fe760a6713938f0d375e38e0de04.zip |
GNS: No need to create key and then overwrite.
Diffstat (limited to 'src/revocation/gnunet-revocation-tvg.c')
-rw-r--r-- | src/revocation/gnunet-revocation-tvg.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/revocation/gnunet-revocation-tvg.c b/src/revocation/gnunet-revocation-tvg.c index 0020c2d26..e8b0820bb 100644 --- a/src/revocation/gnunet-revocation-tvg.c +++ b/src/revocation/gnunet-revocation-tvg.c | |||
@@ -181,7 +181,6 @@ run (void *cls, | |||
181 | struct GNUNET_IDENTITY_PrivateKey id_priv; | 181 | struct GNUNET_IDENTITY_PrivateKey id_priv; |
182 | 182 | ||
183 | id_priv.type = htonl (GNUNET_IDENTITY_TYPE_ECDSA); | 183 | id_priv.type = htonl (GNUNET_IDENTITY_TYPE_ECDSA); |
184 | GNUNET_CRYPTO_ecdsa_key_create (&id_priv.ecdsa_key); | ||
185 | parsehex (d_pkey,(char*) &id_priv.ecdsa_key, sizeof (id_priv.ecdsa_key), 1); | 184 | parsehex (d_pkey,(char*) &id_priv.ecdsa_key, sizeof (id_priv.ecdsa_key), 1); |
186 | 185 | ||
187 | fprintf (stdout, "Zone private key (d, big-endian):\n"); | 186 | fprintf (stdout, "Zone private key (d, big-endian):\n"); |
@@ -189,7 +188,6 @@ run (void *cls, | |||
189 | run_with_key (&id_priv); | 188 | run_with_key (&id_priv); |
190 | printf ("\n"); | 189 | printf ("\n"); |
191 | id_priv.type = htonl (GNUNET_IDENTITY_TYPE_EDDSA); | 190 | id_priv.type = htonl (GNUNET_IDENTITY_TYPE_EDDSA); |
192 | GNUNET_CRYPTO_eddsa_key_create (&id_priv.eddsa_key); | ||
193 | parsehex (d_edkey,(char*) &id_priv.eddsa_key, sizeof (id_priv.eddsa_key), 0); | 191 | parsehex (d_edkey,(char*) &id_priv.eddsa_key, sizeof (id_priv.eddsa_key), 0); |
194 | 192 | ||
195 | fprintf (stdout, "Zone private key (d):\n"); | 193 | fprintf (stdout, "Zone private key (d):\n"); |