From: Nikhil Bisht Date: Thu, 22 Dec 2022 20:56:28 +0000 (+0530) Subject: Documentation for EVP_PKEY_CTX_get0_pkey() and EVP_PKEY_CTX_get0_peerkey(). X-Git-Tag: openssl-3.2.0-alpha1~1543 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3be76745e55eab9ea976f7a23e6c8ecd3bb8136c;p=thirdparty%2Fopenssl.git Documentation for EVP_PKEY_CTX_get0_pkey() and EVP_PKEY_CTX_get0_peerkey(). Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19962) --- diff --git a/doc/build.info b/doc/build.info index 3251d272587..c1d6a5f1dcf 100644 --- a/doc/build.info +++ b/doc/build.info @@ -1179,6 +1179,10 @@ DEPEND[html/man3/EVP_PKEY_CTX_get0_libctx.html]=man3/EVP_PKEY_CTX_get0_libctx.po GENERATE[html/man3/EVP_PKEY_CTX_get0_libctx.html]=man3/EVP_PKEY_CTX_get0_libctx.pod DEPEND[man/man3/EVP_PKEY_CTX_get0_libctx.3]=man3/EVP_PKEY_CTX_get0_libctx.pod GENERATE[man/man3/EVP_PKEY_CTX_get0_libctx.3]=man3/EVP_PKEY_CTX_get0_libctx.pod +DEPEND[html/man3/EVP_PKEY_CTX_get0_pkey.html]=man3/EVP_PKEY_CTX_get0_pkey.pod +GENERATE[html/man3/EVP_PKEY_CTX_get0_pkey.html]=man3/EVP_PKEY_CTX_get0_pkey.pod +DEPEND[man/man3/EVP_PKEY_CTX_get0_pkey.3]=man3/EVP_PKEY_CTX_get0_pkey.pod +GENERATE[man/man3/EVP_PKEY_CTX_get0_pkey.3]=man3/EVP_PKEY_CTX_get0_pkey.pod DEPEND[html/man3/EVP_PKEY_CTX_new.html]=man3/EVP_PKEY_CTX_new.pod GENERATE[html/man3/EVP_PKEY_CTX_new.html]=man3/EVP_PKEY_CTX_new.pod DEPEND[man/man3/EVP_PKEY_CTX_new.3]=man3/EVP_PKEY_CTX_new.pod @@ -3098,6 +3102,7 @@ html/man3/EVP_PKEY2PKCS8.html \ html/man3/EVP_PKEY_ASN1_METHOD.html \ html/man3/EVP_PKEY_CTX_ctrl.html \ html/man3/EVP_PKEY_CTX_get0_libctx.html \ +html/man3/EVP_PKEY_CTX_get0_pkey.html \ html/man3/EVP_PKEY_CTX_new.html \ html/man3/EVP_PKEY_CTX_set1_pbe_pass.html \ html/man3/EVP_PKEY_CTX_set_hkdf_md.html \ @@ -3711,6 +3716,7 @@ man/man3/EVP_PKEY2PKCS8.3 \ man/man3/EVP_PKEY_ASN1_METHOD.3 \ man/man3/EVP_PKEY_CTX_ctrl.3 \ man/man3/EVP_PKEY_CTX_get0_libctx.3 \ +man/man3/EVP_PKEY_CTX_get0_pkey.3 \ man/man3/EVP_PKEY_CTX_new.3 \ man/man3/EVP_PKEY_CTX_set1_pbe_pass.3 \ man/man3/EVP_PKEY_CTX_set_hkdf_md.3 \ diff --git a/doc/man3/EVP_PKEY_CTX_get0_pkey.pod b/doc/man3/EVP_PKEY_CTX_get0_pkey.pod new file mode 100644 index 00000000000..26eef87cc1c --- /dev/null +++ b/doc/man3/EVP_PKEY_CTX_get0_pkey.pod @@ -0,0 +1,56 @@ +=pod + +=head1 NAME + +EVP_PKEY_CTX_get0_pkey, +EVP_PKEY_CTX_get0_peerkey +- functions for accessing the EVP_PKEY associated with an EVP_PKEY_CTX + +=head1 SYNOPSIS + + #include + + EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx); + EVP_PKEY *EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx); + +=head1 DESCRIPTION + +EVP_PKEY_CTX_get0_pkey() is used to access the B +associated with the given B I. +The B obtained is the one used for creating the B +using either L or L. + +EVP_PKEY_CTX_get0_peerkey() is used to access the peer B +associated with the given B I. +The peer B obtained is the one set using +either L or L. + +=head1 RETURN VALUES + +EVP_PKEY_CTX_get0_pkey() returns the B associated with the +EVP_PKEY_CTX or NULL if it is not set. + +EVP_PKEY_CTX_get0_peerkey() returns the peer B associated with the +EVP_PKEY_CTX or NULL if it is not set. + +The returned EVP_PKEY objects are owned by the EVP_PKEY_CTX, +and therefore should not explicitly be freed by the caller. + +These functions do not affect the EVP_PKEY reference count. +They merely act as getter functions, and should be treated as such. + +=head1 SEE ALSO + +L, L, +L, L + +=head1 COPYRIGHT + +Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the Apache License 2.0 (the "License"). +You may not use this file except in compliance with the License. +You can obtain a copy in the file LICENSE in the source distribution or at +L. + +=cut diff --git a/util/missingcrypto.txt b/util/missingcrypto.txt index a603ff7545e..3090d504736 100644 --- a/util/missingcrypto.txt +++ b/util/missingcrypto.txt @@ -588,8 +588,6 @@ EVP_MD_do_all(3) EVP_MD_do_all_sorted(3) EVP_PBE_cleanup(3) EVP_PBE_get(3) -EVP_PKEY_CTX_get0_peerkey(3) -EVP_PKEY_CTX_get0_pkey(3) EVP_PKEY_CTX_get_data(3) EVP_PKEY_CTX_get_operation(3) EVP_PKEY_CTX_hex2ctrl(3)