aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r--src/util/gnunet-ecc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c
index 4f20d3208..6d9e78443 100644
--- a/src/util/gnunet-ecc.c
+++ b/src/util/gnunet-ecc.c
@@ -110,7 +110,7 @@ run (void *cls, char *const *args, const char *cfgfile,
110 const struct GNUNET_CONFIGURATION_Handle *cfg) 110 const struct GNUNET_CONFIGURATION_Handle *cfg)
111{ 111{
112 struct GNUNET_CRYPTO_EccPrivateKey *pk; 112 struct GNUNET_CRYPTO_EccPrivateKey *pk;
113 struct GNUNET_CRYPTO_EccPublicKey pub; 113 struct GNUNET_CRYPTO_EccPublicSignKey pub;
114 struct GNUNET_PeerIdentity pid; 114 struct GNUNET_PeerIdentity pid;
115 115
116 if (NULL == args[0]) 116 if (NULL == args[0])
@@ -130,7 +130,7 @@ run (void *cls, char *const *args, const char *cfgfile,
130 { 130 {
131 char *s; 131 char *s;
132 132
133 GNUNET_CRYPTO_ecc_key_get_public (pk, &pub); 133 GNUNET_CRYPTO_ecc_key_get_public_for_signature (pk, &pub);
134 s = GNUNET_CRYPTO_ecc_public_key_to_string (&pub); 134 s = GNUNET_CRYPTO_ecc_public_key_to_string (&pub);
135 fprintf (stdout, "%s\n", s); 135 fprintf (stdout, "%s\n", s);
136 GNUNET_free (s); 136 GNUNET_free (s);
@@ -139,7 +139,7 @@ run (void *cls, char *const *args, const char *cfgfile,
139 { 139 {
140 struct GNUNET_CRYPTO_HashAsciiEncoded enc; 140 struct GNUNET_CRYPTO_HashAsciiEncoded enc;
141 141
142 GNUNET_CRYPTO_ecc_key_get_public (pk, &pub); 142 GNUNET_CRYPTO_ecc_key_get_public_for_signature (pk, &pub);
143 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &pid.hashPubKey); 143 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &pid.hashPubKey);
144 GNUNET_CRYPTO_hash_to_enc (&pid.hashPubKey, &enc); 144 GNUNET_CRYPTO_hash_to_enc (&pid.hashPubKey, &enc);
145 fprintf (stdout, "%s\n", enc.encoding); 145 fprintf (stdout, "%s\n", enc.encoding);