summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
blob: 5db4313047f83800a41f93bb05bad56ea6328128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.Dd $Mdocdate: November 4 2016 $
.Dt X509_STORE_SET_VERIFY_CB_FUNC 3
.Os
.Sh NAME
.Nm X509_STORE_set_verify_cb_func ,
.Nm X509_STORE_set_verify_cb
.Nd set verification callback
.Sh SYNOPSIS
.In openssl/x509_vfy.h
.Ft void
.Fo X509_STORE_set_verify_cb
.Fa "X509_STORE *st"
.Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)"
.Fc
.Ft void
.Fo X509_STORE_set_verify_cb_func
.Fa "X509_STORE *st"
.Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)"
.Fc
.Sh DESCRIPTION
.Fn X509_STORE_set_verify_cb
sets the verification callback of
.Sy ctx
to
.Sy verify_cb
overwriting any existing callback.
.Pp
.Fn X509_STORE_set_verify_cb_func
also sets the verification callback but it is implemented as a macro.
.Pp
The verification callback from an
.Vt X509_STORE
is inherited by the corresponding
.Vt X509_STORE_CTX
structure when it is initialized.
This can be used to set the verification callback when the
.Vt X509_STORE_CTX
is otherwise inaccessible (for example during S/MIME verification).
.Sh RETURN VALUES
.Fn X509_STORE_set_verify_cb
and
.Fn X509_STORE_set_verify_cb_func
do not return a value.
.Sh SEE ALSO
.Xr X509_STORE_CTX_set_verify_cb 3
.Sh HISTORY
.Fn X509_STORE_set_verify_cb_func
is available in all versions of SSLeay and OpenSSL.
.Pp
.Fn X509_STORE_set_verify_cb
was added to OpenSSL 1.0.0.
.Sh BUGS
The macro version of this function was the only one available before
OpenSSL 1.0.0.