From 427dd6f998fb1fde515a3b5c800f9f6d308197b2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Sep 2013 19:24:12 +0000 Subject: -towards addressing #3047, note this causes the code to FTBFS --- src/testing/testing.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/testing') 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, struct GNUNET_PeerIdentity *id) { struct GNUNET_CRYPTO_EccPrivateKey *private_key; - struct GNUNET_CRYPTO_EccPublicSignKey public_key; if ((NULL == id) || (NULL == system->hostkeys_data)) return NULL; @@ -716,10 +715,8 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, system->hostkeys_data + (key_number * GNUNET_TESTING_HOSTKEYFILESIZE), GNUNET_TESTING_HOSTKEYFILESIZE); - GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key); - GNUNET_CRYPTO_hash (&public_key, - sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), - &(id->hashPubKey)); + GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, + &id->public_key); return private_key; } -- cgit v1.2.3