1X509_STORE_set_verify_cb_func(3) OpenSSL X509_STORE_set_verify_cb_func(3)
2
3
4
6 X509_STORE_set_verify_cb_func, X509_STORE_set_verify_cb - set
7 verification callback
8
10 #include <openssl/x509_vfy.h>
11
12 void X509_STORE_set_verify_cb(X509_STORE *st,
13 int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
14
15 void X509_STORE_set_verify_cb_func(X509_STORE *st,
16 int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
17
19 X509_STORE_set_verify_cb() sets the verification callback of ctx to
20 verify_cb overwriting any existing callback.
21
22 X509_STORE_set_verify_cb_func() also sets the verification callback but
23 it is implemented as a macro.
24
26 The verification callback from an X509_STORE is inherited by the
27 corresponding X509_STORE_CTX structure when it is initialized. This can
28 be used to set the verification callback when the X509_STORE_CTX is
29 otherwise inaccessible (for example during S/MIME verification).
30
32 The macro version of this function was the only one available before
33 OpenSSL 1.0.0.
34
36 X509_STORE_set_verify_cb() and X509_STORE_set_verify_cb_func() do not
37 return a value.
38
40 X509_STORE_CTX_set_verify_cb(3) CMS_verify(3)
41
43 X509_STORE_set_verify_cb_func() is available in all versions of SSLeay
44 and OpenSSL.
45
46 X509_STORE_set_verify_cb() was added to OpenSSL 1.0.0.
47
48
49
501.0.2k 2017-01-26 X509_STORE_set_verify_cb_func(3)