aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/openssl/openssl_ec.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-01 16:14:52 -0500
committerJack Lloyd <[email protected]>2018-02-01 16:15:05 -0500
commitfc3e1ed8c4f461285dc7a29dd6b69847cd61f30d (patch)
treee1be8c5e05ed93dea0dc2fdc7279abc7bdfb3484 /src/lib/prov/openssl/openssl_ec.cpp
parente70879bf0f3c1705cd6d4f0b4cef1f5d990c5b51 (diff)
Avoid deprecated functions in OpenSSL provider [ci skip]
Diffstat (limited to 'src/lib/prov/openssl/openssl_ec.cpp')
-rw-r--r--src/lib/prov/openssl/openssl_ec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/prov/openssl/openssl_ec.cpp b/src/lib/prov/openssl/openssl_ec.cpp
index 66c3d286b..90b5e2023 100644
--- a/src/lib/prov/openssl/openssl_ec.cpp
+++ b/src/lib/prov/openssl/openssl_ec.cpp
@@ -251,7 +251,7 @@ class OpenSSL_ECDSA_Signing_Operation final : public PK_Ops::Signature_with_EMSA
std::unique_ptr<PK_Ops::Verification>
make_openssl_ecdsa_ver_op(const ECDSA_PublicKey& key, const std::string& params)
{
- const int nid = OpenSSL_EC_nid_for(key.domain().get_oid());
+ const int nid = OpenSSL_EC_nid_for(key.domain().get_curve_oid());
if(nid < 0)
{
throw Lookup_Error("OpenSSL ECDSA does not support this curve");
@@ -262,7 +262,7 @@ make_openssl_ecdsa_ver_op(const ECDSA_PublicKey& key, const std::string& params)
std::unique_ptr<PK_Ops::Signature>
make_openssl_ecdsa_sig_op(const ECDSA_PrivateKey& key, const std::string& params)
{
- const int nid = OpenSSL_EC_nid_for(key.domain().get_oid());
+ const int nid = OpenSSL_EC_nid_for(key.domain().get_curve_oid());
if(nid < 0)
{
throw Lookup_Error("OpenSSL ECDSA does not support this curve");
@@ -333,7 +333,7 @@ class OpenSSL_ECDH_KA_Operation final : public PK_Ops::Key_Agreement_with_KDF
std::unique_ptr<PK_Ops::Key_Agreement>
make_openssl_ecdh_ka_op(const ECDH_PrivateKey& key, const std::string& params)
{
- const int nid = OpenSSL_EC_nid_for(key.domain().get_oid());
+ const int nid = OpenSSL_EC_nid_for(key.domain().get_curve_oid());
if(nid < 0)
{
throw Lookup_Error("OpenSSL ECDH does not support this curve");