diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-27 20:28:41 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-27 20:28:41 +0200 |
commit | 1dbaec2177964bbdc5228f652d0609b2ec2c8d99 (patch) | |
tree | 6e3aef55a32c1ab8ca2ecdf1110016780c5c53f4 /src/libstrongswan/plugins/openssl/openssl_ec_private_key.c | |
parent | ac6a0d5038b5fcab8f263866851c65985603cd3f (diff) | |
download | strongswan-1dbaec2177964bbdc5228f652d0609b2ec2c8d99.tar.bz2 strongswan-1dbaec2177964bbdc5228f652d0609b2ec2c8d99.tar.xz |
NID_hash and NID_ec_curve were interchanged
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_ec_private_key.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_ec_private_key.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_private_key.c b/src/libstrongswan/plugins/openssl/openssl_ec_private_key.c index 576eaf5c5..0bfe27fc9 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_private_key.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_private_key.c @@ -153,14 +153,14 @@ static bool sign(private_openssl_ec_private_key_t *this, case SIGN_ECDSA_WITH_SHA512_DER: return build_der_signature(this, NID_sha512, data, signature); case SIGN_ECDSA_256: - return build_curve_signature(this, scheme, NID_X9_62_prime256v1, - NID_sha256, data, signature); + return build_curve_signature(this, scheme, NID_sha256, + NID_X9_62_prime256v1, data, signature); case SIGN_ECDSA_384: - return build_curve_signature(this, scheme, NID_secp384r1, - NID_sha384, data, signature); + return build_curve_signature(this, scheme, NID_sha384, + NID_secp384r1, data, signature); case SIGN_ECDSA_521: - return build_curve_signature(this, scheme, NID_secp521r1, - NID_sha512, data, signature); + return build_curve_signature(this, scheme, NID_sha512, + NID_secp521r1, data, signature); default: DBG1("signature scheme %N not supported", signature_scheme_names, scheme); |