From: Pauli Date: Thu, 25 Mar 2021 01:55:06 +0000 (+1000) Subject: doc: add documentation for the X509_PUBKEY_dup() function X-Git-Tag: openssl-3.0.0-alpha14~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=239ff7f7690fb68dde6324a29ca337bbd4c5aa7f;p=thirdparty%2Fopenssl.git doc: add documentation for the X509_PUBKEY_dup() function Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14642) --- diff --git a/doc/man3/X509_PUBKEY_new.pod b/doc/man3/X509_PUBKEY_new.pod index fa6141d682e..72d399f6474 100644 --- a/doc/man3/X509_PUBKEY_new.pod +++ b/doc/man3/X509_PUBKEY_new.pod @@ -46,6 +46,9 @@ structure defined in RFC5280 and used in certificates and certificate requests. X509_PUBKEY_new() allocates and initializes an B structure. +X509_PUBKEY_dup() creates a duplicate copy of the B object +specified by I. + X509_PUBKEY_free() frees up B structure B. If B is NULL nothing is done. @@ -102,10 +105,9 @@ directly: they will instead call wrapper functions such as X509_get0_pubkey(). =head1 RETURN VALUES -If the allocation fails, X509_PUBKEY_new() returns B and sets an error -code that can be obtained by L. - -Otherwise it returns a pointer to the newly allocated structure. +If the allocation fails, X509_PUBKEY_new() and X509_PUBKEY_dup() return +B and set an error code that can be obtained by L. +Otherwise they return a pointer to the newly allocated structure. X509_PUBKEY_free() does not return a value.