summaryrefslogtreecommitdiffstats
path: root/crypto/cms
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-10-12 17:12:03 +0100
committerMatt Caswell <matt@openssl.org>2020-10-15 10:00:28 +0100
commit29000e43ea257bf54f6ccb2064b3744853b821b2 (patch)
tree37790003f0f3683ec8cc8836499afb2844b90fa9 /crypto/cms
parent0d30e15a57fdd9c27a9148c17289a1005345f0c7 (diff)
Make evp_pkey_ctx_get0_libctx/propq public API
These were previously added as an internal API. But since the CMS code needs them, other code might do too. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13088)
Diffstat (limited to 'crypto/cms')
-rw-r--r--crypto/cms/cms_ec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/cms/cms_ec.c b/crypto/cms/cms_ec.c
index 394c8b4dc3..ca2294ebc3 100644
--- a/crypto/cms/cms_ec.c
+++ b/crypto/cms/cms_ec.c
@@ -100,10 +100,9 @@ static int ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx,
if (!EVP_PKEY_copy_parameters(pkpeer, pk))
goto err;
} else {
- /* TODO(3.0): Should the get0_libctx/propq calls actually be public API? */
pkpeer = pkey_type2param(atype, aval,
- evp_pkey_ctx_get0_libctx(pctx),
- evp_pkey_ctx_get0_propq(pctx));
+ EVP_PKEY_CTX_get0_libctx(pctx),
+ EVP_PKEY_CTX_get0_propq(pctx));
if (pkpeer == NULL)
goto err;
}