]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
[Docs] SSL_*_use will increment reference counter
authorRuslan Baratov <x@ruslo.dev>
Wed, 29 May 2024 00:36:53 +0000 (08:36 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 30 May 2024 16:47:55 +0000 (18:47 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24520)

doc/man3/SSL_CTX_use_certificate.pod

index 0d9ba740426e991b1ff8bd2eb84723fb5992d912..ed9659f1f82ef9d9093ee755842fd8dd18ebbbc5 100644 (file)
@@ -68,7 +68,7 @@ SSL_use_certificate() loads B<x> into B<ssl>. The rest of the
 certificates needed to form the complete certificate chain can be
 specified using the
 L<SSL_CTX_add_extra_chain_cert(3)>
-function.
+function. On success the reference counter of the B<x> is incremented.
 
 SSL_CTX_use_certificate_ASN1() loads the ASN1 encoded certificate from
 the memory location B<d> (with length B<len>) into B<ctx>,
@@ -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<pkey>/B<rsa> is incremented.
 
 SSL_CTX_use_cert_and_key() and SSL_use_cert_and_key() assign the X.509
 certificate B<x>, private key B<key>, and certificate B<chain> onto the