From 239ff7f7690fb68dde6324a29ca337bbd4c5aa7f Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 25 Mar 2021 11:55:06 +1000 Subject: [PATCH] doc: add documentation for the X509_PUBKEY_dup() function Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14642) --- doc/man3/X509_PUBKEY_new.pod | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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. -- 2.47.2