diff options
author | schwarze <> | 2021-11-17 16:08:32 +0000 |
---|---|---|
committer | schwarze <> | 2021-11-17 16:08:32 +0000 |
commit | 8c1761a51aa50ec3f12696927791681f5d155db6 (patch) | |
tree | b482c5bb492a64e0f9db616bf3b40910b8ce4eff /src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3 | |
parent | 1e3c032a54098351c348cfd0269ea0030e6454eb (diff) | |
download | openbsd-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.3 | 40 |
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 |
79 | sets the verification callback of | 73 | sets the verification callback of |
@@ -93,32 +87,16 @@ structure when it is initialized. | |||
93 | This can be used to set the verification callback when the | 87 | This can be used to set the verification callback when the |
94 | .Vt X509_STORE_CTX | 88 | .Vt X509_STORE_CTX |
95 | is otherwise inaccessible (for example during S/MIME verification). | 89 | is otherwise inaccessible (for example during S/MIME verification). |
96 | .Pp | ||
97 | .Fn X509_STORE_set_verify_func | ||
98 | sets the final chain verification function for | ||
99 | .Fa st | ||
100 | to | ||
101 | .Fa verify_func . | ||
102 | Its purpose is to go through the chain of certificates and check | ||
103 | that all signatures are valid and that the current time is within | ||
104 | the limits of each certificate's first and last validity time. | ||
105 | The final chain verification function | ||
106 | must return 0 on failure and 1 on success. | ||
107 | If | ||
108 | .Fn X509_STORE_set_verify_func | ||
109 | is not called or called with | ||
110 | .Fa verify_func | ||
111 | set to a | ||
112 | .Dv NULL | ||
113 | pointer, 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 |
119 | and | 99 | first appeared in SSLeay 0.8.0 and has been available since |
120 | .Fn X509_STORE_set_verify_func | ||
121 | first 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 |