From 29000e43ea257bf54f6ccb2064b3744853b821b2 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 12 Oct 2020 17:12:03 +0100 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/13088) --- crypto/cms/cms_ec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crypto/cms') 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; } -- cgit v1.2.3