diff options
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 66fcf11da..8f32d2409 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -701,7 +701,7 @@ 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_EccPublicKey public_key; | 704 | struct GNUNET_CRYPTO_EccPublicSignKey public_key; |
705 | 705 | ||
706 | if ((NULL == id) || (NULL == system->hostkeys_data)) | 706 | if ((NULL == id) || (NULL == system->hostkeys_data)) |
707 | return NULL; | 707 | return NULL; |
@@ -722,9 +722,9 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | |||
722 | _("Error while decoding key %u\n"), key_number); | 722 | _("Error while decoding key %u\n"), key_number); |
723 | return NULL; | 723 | return NULL; |
724 | } | 724 | } |
725 | GNUNET_CRYPTO_ecc_key_get_public (private_key, &public_key); | 725 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key); |
726 | GNUNET_CRYPTO_hash (&public_key, | 726 | GNUNET_CRYPTO_hash (&public_key, |
727 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), | 727 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), |
728 | &(id->hashPubKey)); | 728 | &(id->hashPubKey)); |
729 | return private_key; | 729 | return private_key; |
730 | } | 730 | } |