From: Michael Baentsch <57787676+baentsch@users.noreply.github.com> Date: Mon, 30 Jun 2025 07:33:46 +0000 (+0200) Subject: Add note about use of EVP_PKEY in different libctxs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69aa990775664949d0627252d09b84a65a7c887c;p=thirdparty%2Fopenssl.git Add note about use of EVP_PKEY in different libctxs Co-authored-by: Shane Lontis Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26309) (cherry picked from commit b2ac43b0d89b5b528941ad9d233b4cb4f99a7cca) --- diff --git a/doc/man3/EVP_PKEY_new.pod b/doc/man3/EVP_PKEY_new.pod index 72d129deff2..0a56600c2b6 100644 --- a/doc/man3/EVP_PKEY_new.pod +++ b/doc/man3/EVP_PKEY_new.pod @@ -219,7 +219,19 @@ general private key without reference to any particular algorithm. The structure returned by EVP_PKEY_new() is empty. To add a private or public key to this empty structure use the appropriate functions described in L, L, L or -L. +L for legacy key types implemented in internal +OpenSSL providers. + +For fully provider-managed key types (see L), +possibly implemented in external providers, use functions such as +L or L +to populate key data. + +Generally caution is advised for using an B structure across +different library contexts: In order for an B to be shared by +multiple library contexts the providers associated with the library contexts +must have key managers that support the key type and implement the +OSSL_FUNC_keymgmt_import() and OSSL_FUNC_keymgmt_export() functions. =head1 RETURN VALUES