diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-13 12:00:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-13 12:00:01 +0000 |
commit | a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae (patch) | |
tree | b7768c5cb22e8a4f84d51cbd06dc04861fdb8510 /src/testing/testing.c | |
parent | 95d42fdcb47eedcf2747614a22dacd676bc7faae (diff) | |
download | gnunet-a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae.tar.gz gnunet-a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae.zip |
splitting 'struct GNUNET_CRYPTO_EccPublicKey' into one struct for signing and another for encryption
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 | } |