5 X509_STORE_set_verify_cb_func, X509_STORE_set_verify_cb - set verification callback
9 #include <openssl/x509_vfy.h>
11 void X509_STORE_set_verify_cb(X509_STORE *st,
12 int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
14 void X509_STORE_set_verify_cb_func(X509_STORE *st,
15 int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
19 X509_STORE_set_verify_cb() sets the verification callback of B<ctx> to
20 B<verify_cb> overwriting any existing callback.
22 X509_STORE_set_verify_cb_func() also sets the verification callback but it
23 is implemented as a macro.
27 The verification callback from an B<X509_STORE> is inherited by
28 the corresponding B<X509_STORE_CTX> structure when it is initialized. This can
29 be used to set the verification callback when the B<X509_STORE_CTX> is
30 otherwise inaccessible (for example during S/MIME verification).
34 The macro version of this function was the only one available before
39 X509_STORE_set_verify_cb() and X509_STORE_set_verify_cb_func() do not return
44 L<X509_STORE_CTX_set_verify_cb(3)|X509_STORE_CTX_set_verify_cb(3)>
45 L<CMS_verify(3)|CMS_verify(3)>
49 X509_STORE_set_verify_cb_func() is available in all versions of SSLeay and
52 X509_STORE_set_verify_cb() was added to OpenSSL 1.0.0.