From: Ruslan Baratov Date: Wed, 29 May 2024 00:36:53 +0000 (+0800) Subject: [Docs] SSL_*_use will increment reference counter X-Git-Tag: openssl-3.1.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0324602e8ae25cc4698164b583ee54208e65695c;p=thirdparty%2Fopenssl.git [Docs] SSL_*_use will increment reference counter Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/24520) (cherry picked from commit 0c73d65eeae9086c37149f4a512946040c8c2af3) --- diff --git a/doc/man3/SSL_CTX_use_certificate.pod b/doc/man3/SSL_CTX_use_certificate.pod index ca1827dada8..f34b973d6fc 100644 --- a/doc/man3/SSL_CTX_use_certificate.pod +++ b/doc/man3/SSL_CTX_use_certificate.pod @@ -68,7 +68,7 @@ SSL_use_certificate() loads B into B. The rest of the certificates needed to form the complete certificate chain can be specified using the L -function. +function. On success the reference counter of the B is incremented. SSL_CTX_use_certificate_ASN1() loads the ASN1 encoded certificate from the memory location B (with length B) into B, @@ -97,6 +97,7 @@ to the certificate an error is returned. To change a [certificate/private-key] pair, the new certificate needs to be set first with SSL_use_certificate() or SSL_CTX_use_certificate() before setting the private key with SSL_CTX_use_PrivateKey() or SSL_use_PrivateKey(). +On success the reference counter of the B/B is incremented. SSL_CTX_use_cert_and_key() and SSL_use_cert_and_key() assign the X.509 certificate B, private key B, and certificate B onto the