diff options
Diffstat (limited to 'src/testing/testing.c')
-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 | ||