summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
diff options
context:
space:
mode:
authorschwarze <>2021-11-17 16:08:32 +0000
committerschwarze <>2021-11-17 16:08:32 +0000
commit8c1761a51aa50ec3f12696927791681f5d155db6 (patch)
treeb482c5bb492a64e0f9db616bf3b40910b8ce4eff /src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
parent1e3c032a54098351c348cfd0269ea0030e6454eb (diff)
downloadopenbsd-8c1761a51aa50ec3f12696927791681f5d155db6.tar.gz
openbsd-8c1761a51aa50ec3f12696927791681f5d155db6.tar.bz2
openbsd-8c1761a51aa50ec3f12696927791681f5d155db6.zip
In x509_vfy.h rev. 1.37 and x509_vfy.c rev. 1.91, tb@ provided
X509_STORE_CTX_set_verify(3) and X509_STORE_CTX_get_verify(3). Document them. In the next bump, tb@ will also provide X509_STORE_CTX_verify_fn(3) and X509_STORE_set_verify(3) and restore X509_STORE_set_verify_func(3) to working order. For efficiency of documentation work, already document those three, too, but keep the text temporariy .if'ed out until they become available. Delete X509_STORE_set_verify_func(3) from X509_STORE_set_verify_cb_func(3) because it was misplaced in that page: it is not related to the verification callback. tb@ agrees with the general direction.
Diffstat (limited to 'src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3')
-rw-r--r--src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.340
1 files changed, 9 insertions, 31 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3 b/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
index 59b1feff77..f6d534bbb0 100644
--- a/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
+++ b/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_STORE_set_verify_cb_func.3,v 1.10 2021/07/29 10:13:45 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_set_verify_cb_func.3,v 1.11 2021/11/17 16:08:32 schwarze Exp $
2.\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400 2.\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400
3.\" selective merge up to: OpenSSL 315c47e0 Dec 1 14:22:16 2020 +0100 3.\" selective merge up to: OpenSSL 315c47e0 Dec 1 14:22:16 2020 +0100
4.\" 4.\"
@@ -49,13 +49,12 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: July 29 2021 $ 52.Dd $Mdocdate: November 17 2021 $
53.Dt X509_STORE_SET_VERIFY_CB_FUNC 3 53.Dt X509_STORE_SET_VERIFY_CB_FUNC 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
56.Nm X509_STORE_set_verify_cb , 56.Nm X509_STORE_set_verify_cb ,
57.Nm X509_STORE_set_verify_cb_func , 57.Nm X509_STORE_set_verify_cb_func
58.Nm X509_STORE_set_verify_func
59.Nd set verification callback 58.Nd set verification callback
60.Sh SYNOPSIS 59.Sh SYNOPSIS
61.In openssl/x509_vfy.h 60.In openssl/x509_vfy.h
@@ -69,11 +68,6 @@
69.Fa "X509_STORE *st" 68.Fa "X509_STORE *st"
70.Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)" 69.Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)"
71.Fc 70.Fc
72.Ft void
73.Fo X509_STORE_set_verify_func
74.Fa "X509_STORE *st"
75.Fa "int (*verify_func)(X509_STORE_CTX *ctx)"
76.Fc
77.Sh DESCRIPTION 71.Sh DESCRIPTION
78.Fn X509_STORE_set_verify_cb 72.Fn X509_STORE_set_verify_cb
79sets the verification callback of 73sets the verification callback of
@@ -93,32 +87,16 @@ structure when it is initialized.
93This can be used to set the verification callback when the 87This can be used to set the verification callback when the
94.Vt X509_STORE_CTX 88.Vt X509_STORE_CTX
95is otherwise inaccessible (for example during S/MIME verification). 89is otherwise inaccessible (for example during S/MIME verification).
96.Pp
97.Fn X509_STORE_set_verify_func
98sets the final chain verification function for
99.Fa st
100to
101.Fa verify_func .
102Its purpose is to go through the chain of certificates and check
103that all signatures are valid and that the current time is within
104the limits of each certificate's first and last validity time.
105The final chain verification function
106must return 0 on failure and 1 on success.
107If
108.Fn X509_STORE_set_verify_func
109is not called or called with
110.Fa verify_func
111set to a
112.Dv NULL
113pointer, the built-in default function is used.
114.Sh SEE ALSO 90.Sh SEE ALSO
91.Xr X509_STORE_CTX_new 3 ,
92.Xr X509_STORE_CTX_set_verify 3 ,
115.Xr X509_STORE_CTX_set_verify_cb 3 , 93.Xr X509_STORE_CTX_set_verify_cb 3 ,
116.Xr X509_STORE_new 3 94.Xr X509_STORE_new 3 ,
95.Xr X509_STORE_set_flags 3 ,
96.Xr X509_verify_cert 3
117.Sh HISTORY 97.Sh HISTORY
118.Fn X509_STORE_set_verify_cb_func 98.Fn X509_STORE_set_verify_cb_func
119and 99first appeared in SSLeay 0.8.0 and has been available since
120.Fn X509_STORE_set_verify_func
121first appeared in SSLeay 0.8.0 and have been available since
122.Ox 2.4 . 100.Ox 2.4 .
123.Pp 101.Pp
124.Fn X509_STORE_set_verify_cb 102.Fn X509_STORE_set_verify_cb