diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
commit | 427dd6f998fb1fde515a3b5c800f9f6d308197b2 (patch) | |
tree | 8cbe9bf7b43fafae07ed1a25753ccccdbe430148 /src/util/crypto_ecc.c | |
parent | b18fa7b1e7fcb4d48e2ef314a7d822ccddd8bd60 (diff) | |
download | gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.tar.gz gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.zip |
-towards addressing #3047, note this causes the code to FTBFS
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r-- | src/util/crypto_ecc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index e393ad1e5..770b0c37c 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c | |||
@@ -25,7 +25,6 @@ | |||
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include <gcrypt.h> | 27 | #include <gcrypt.h> |
28 | #include "gnunet_common.h" | ||
29 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
30 | 29 | ||
31 | #define EXTRA_CHECKS ALLOW_EXTRA_CHECKS | 30 | #define EXTRA_CHECKS ALLOW_EXTRA_CHECKS |
@@ -746,7 +745,6 @@ GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
746 | struct GNUNET_PeerIdentity *dst) | 745 | struct GNUNET_PeerIdentity *dst) |
747 | { | 746 | { |
748 | struct GNUNET_CRYPTO_EccPrivateKey *priv; | 747 | struct GNUNET_CRYPTO_EccPrivateKey *priv; |
749 | struct GNUNET_CRYPTO_EccPublicSignKey pub; | ||
750 | 748 | ||
751 | if (NULL == (priv = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg))) | 749 | if (NULL == (priv = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg))) |
752 | { | 750 | { |
@@ -754,9 +752,8 @@ GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
754 | _("Could not load peer's private key\n")); | 752 | _("Could not load peer's private key\n")); |
755 | return GNUNET_SYSERR; | 753 | return GNUNET_SYSERR; |
756 | } | 754 | } |
757 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv, &pub); | 755 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv, &dst->public_key); |
758 | GNUNET_free (priv); | 756 | GNUNET_free (priv); |
759 | GNUNET_CRYPTO_hash (&pub, sizeof (pub), &dst->hashPubKey); | ||
760 | return GNUNET_OK; | 757 | return GNUNET_OK; |
761 | } | 758 | } |
762 | 759 | ||