summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-08-03 04:53:02 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-08-03 04:53:02 +0000
commit98bb5836f5dc65c6af524d1d4cb2daa7def0d39a (patch)
tree5bdc8954b3d1cbc517cd6e9f7524ef3c754612e3 /lib
parent8514f573f96fb4d8a8aebb22a89ad4476c163154 (diff)
Document SSL_CTX_set_cert_store
From Kenjiro Nakayama
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/man/SSL_CTX_set_cert_store.320
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/libssl/man/SSL_CTX_set_cert_store.3 b/lib/libssl/man/SSL_CTX_set_cert_store.3
index b23e3c4a12b..1be1ba2f68d 100644
--- a/lib/libssl/man/SSL_CTX_set_cert_store.3
+++ b/lib/libssl/man/SSL_CTX_set_cert_store.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: SSL_CTX_set_cert_store.3,v 1.7 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: SSL_CTX_set_cert_store.3,v 1.8 2024/08/03 04:53:01 tb Exp $
.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
.\"
.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>.
@@ -48,17 +48,20 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: August 3 2024 $
.Dt SSL_CTX_SET_CERT_STORE 3
.Os
.Sh NAME
.Nm SSL_CTX_set_cert_store ,
+.Nm SSL_CTX_set1_cert_store ,
.Nm SSL_CTX_get_cert_store
.Nd manipulate X509 certificate verification storage
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft void
.Fn SSL_CTX_set_cert_store "SSL_CTX *ctx" "X509_STORE *store"
+.Ft void
+.Fn SSL_CTX_set1_cert_store "SSL_CTX *ctx" "X509_STORE *store"
.Ft X509_STORE *
.Fn SSL_CTX_get_cert_store "const SSL_CTX *ctx"
.Sh DESCRIPTION
@@ -73,6 +76,15 @@ object is currently set in
.Fa ctx ,
it will be freed.
.Pp
+.Fn SSL_CTX_set1_cert_store
+sets the verification storage of
+.Fa ctx
+to or replaces it with
+.Fa store .
+The
+.Fa store Ns 's
+reference count is incremented.
+.Pp
.Fn SSL_CTX_get_cert_store
returns a pointer to the current certificate verification storage.
.Pp
@@ -128,3 +140,7 @@ and
.Fn SSL_CTX_get_cert_store
first appeared in SSLeay 0.8.1 and have been available since
.Ox 2.4 .
+.Pp
+.Fn SSL_CTX_set1_cert_store
+first appeared in OpenSSL 1.1.1 and has been available since
+.Ox 7.6 .