1238384Sjkim=pod
2238384Sjkim
3238384Sjkim=head1 NAME
4238384Sjkim
5238384SjkimX509_STORE_set_verify_cb_func, X509_STORE_set_verify_cb - set verification callback
6238384Sjkim
7238384Sjkim=head1 SYNOPSIS
8238384Sjkim
9238384Sjkim #include <openssl/x509_vfy.h>
10238384Sjkim
11238384Sjkim void X509_STORE_set_verify_cb(X509_STORE *st,
12238384Sjkim				int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
13238384Sjkim
14238384Sjkim void X509_STORE_set_verify_cb_func(X509_STORE *st,
15238384Sjkim				int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
16238384Sjkim
17238384Sjkim=head1 DESCRIPTION
18238384Sjkim
19238384SjkimX509_STORE_set_verify_cb() sets the verification callback of B<ctx> to
20238384SjkimB<verify_cb> overwriting any existing callback.
21238384Sjkim
22238384SjkimX509_STORE_set_verify_cb_func() also sets the verification callback but it
23238384Sjkimis implemented as a macro.
24238384Sjkim
25238384Sjkim=head1 NOTES
26238384Sjkim
27238384SjkimThe verification callback from an B<X509_STORE> is inherited by 
28238384Sjkimthe corresponding B<X509_STORE_CTX> structure when it is initialized. This can
29238384Sjkimbe used to set the verification callback when the B<X509_STORE_CTX> is 
30238384Sjkimotherwise inaccessible (for example during S/MIME verification).
31238384Sjkim
32238384Sjkim=head1 BUGS
33238384Sjkim
34238384SjkimThe macro version of this function was the only one available before 
35238384SjkimOpenSSL 1.0.0.
36238384Sjkim
37238384Sjkim=head1 RETURN VALUES
38238384Sjkim
39238384SjkimX509_STORE_set_verify_cb() and X509_STORE_set_verify_cb_func() do not return
40238384Sjkima value.
41238384Sjkim
42238384Sjkim=head1 SEE ALSO
43238384Sjkim
44238384SjkimL<X509_STORE_CTX_set_verify_cb(3)|X509_STORE_CTX_set_verify_cb(3)>
45238384SjkimL<CMS_verify(3)|CMS_verify(3)>
46238384Sjkim
47238384Sjkim=head1 HISTORY
48238384Sjkim
49238384SjkimX509_STORE_set_verify_cb_func() is available in all versions of SSLeay and
50238384SjkimOpenSSL.
51238384Sjkim
52238384SjkimX509_STORE_set_verify_cb() was added to OpenSSL 1.0.0.
53238384Sjkim
54238384Sjkim=cut
55