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/testing | |
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/testing')
-rw-r--r-- | src/testing/testing.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 8502809f3..10d25637e 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -701,7 +701,6 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | |||
701 | struct GNUNET_PeerIdentity *id) | 701 | struct GNUNET_PeerIdentity *id) |
702 | { | 702 | { |
703 | struct GNUNET_CRYPTO_EccPrivateKey *private_key; | 703 | struct GNUNET_CRYPTO_EccPrivateKey *private_key; |
704 | struct GNUNET_CRYPTO_EccPublicSignKey public_key; | ||
705 | 704 | ||
706 | if ((NULL == id) || (NULL == system->hostkeys_data)) | 705 | if ((NULL == id) || (NULL == system->hostkeys_data)) |
707 | return NULL; | 706 | return NULL; |
@@ -716,10 +715,8 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | |||
716 | system->hostkeys_data + | 715 | system->hostkeys_data + |
717 | (key_number * GNUNET_TESTING_HOSTKEYFILESIZE), | 716 | (key_number * GNUNET_TESTING_HOSTKEYFILESIZE), |
718 | GNUNET_TESTING_HOSTKEYFILESIZE); | 717 | GNUNET_TESTING_HOSTKEYFILESIZE); |
719 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key); | 718 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, |
720 | GNUNET_CRYPTO_hash (&public_key, | 719 | &id->public_key); |
721 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), | ||
722 | &(id->hashPubKey)); | ||
723 | return private_key; | 720 | return private_key; |
724 | } | 721 | } |
725 | 722 | ||