summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuslan Baratov <x@ruslo.dev>2024-05-29 08:36:53 +0800
committerTomas Mraz <tomas@openssl.org>2024-05-30 19:01:59 +0200
commit0324602e8ae25cc4698164b583ee54208e65695c (patch)
treeea5e0b7af852bc919f3ad4c7ef653d7427fef078
parentc5f9b6d328f5916c86aa8c7114d8db38116761e2 (diff)
[Docs] SSL_*_use will increment reference counter
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24520) (cherry picked from commit 0c73d65eeae9086c37149f4a512946040c8c2af3)
-rw-r--r--doc/man3/SSL_CTX_use_certificate.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/man3/SSL_CTX_use_certificate.pod b/doc/man3/SSL_CTX_use_certificate.pod
index ca1827dada..f34b973d6f 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<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