xref: /freebsd/crypto/openssl/doc/man3/SSL_CTX_get_verify_mode.pod (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimSSL_CTX_get_verify_mode, SSL_get_verify_mode, SSL_CTX_get_verify_depth, SSL_get_verify_depth, SSL_get_verify_callback, SSL_CTX_get_verify_callback - get currently set verification parameters
6e71b7053SJung-uk Kim
7e71b7053SJung-uk Kim=head1 SYNOPSIS
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim #include <openssl/ssl.h>
10e71b7053SJung-uk Kim
11e71b7053SJung-uk Kim int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
12e71b7053SJung-uk Kim int SSL_get_verify_mode(const SSL *ssl);
13e71b7053SJung-uk Kim int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
14e71b7053SJung-uk Kim int SSL_get_verify_depth(const SSL *ssl);
15e71b7053SJung-uk Kim int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int, X509_STORE_CTX *);
16e71b7053SJung-uk Kim int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *);
17e71b7053SJung-uk Kim
18e71b7053SJung-uk Kim=head1 DESCRIPTION
19e71b7053SJung-uk Kim
20e71b7053SJung-uk KimSSL_CTX_get_verify_mode() returns the verification mode currently set in
21e71b7053SJung-uk KimB<ctx>.
22e71b7053SJung-uk Kim
23e71b7053SJung-uk KimSSL_get_verify_mode() returns the verification mode currently set in
24e71b7053SJung-uk KimB<ssl>.
25e71b7053SJung-uk Kim
26e71b7053SJung-uk KimSSL_CTX_get_verify_depth() returns the verification depth limit currently set
27e71b7053SJung-uk Kimin B<ctx>. If no limit has been explicitly set, -1 is returned and the
28e71b7053SJung-uk Kimdefault value will be used.
29e71b7053SJung-uk Kim
30e71b7053SJung-uk KimSSL_get_verify_depth() returns the verification depth limit currently set
31e71b7053SJung-uk Kimin B<ssl>. If no limit has been explicitly set, -1 is returned and the
32e71b7053SJung-uk Kimdefault value will be used.
33e71b7053SJung-uk Kim
34e71b7053SJung-uk KimSSL_CTX_get_verify_callback() returns a function pointer to the verification
35e71b7053SJung-uk Kimcallback currently set in B<ctx>. If no callback was explicitly set, the
36e71b7053SJung-uk KimNULL pointer is returned and the default callback will be used.
37e71b7053SJung-uk Kim
38e71b7053SJung-uk KimSSL_get_verify_callback() returns a function pointer to the verification
39e71b7053SJung-uk Kimcallback currently set in B<ssl>. If no callback was explicitly set, the
40e71b7053SJung-uk KimNULL pointer is returned and the default callback will be used.
41e71b7053SJung-uk Kim
42e71b7053SJung-uk Kim=head1 RETURN VALUES
43e71b7053SJung-uk Kim
44e71b7053SJung-uk KimSee DESCRIPTION
45e71b7053SJung-uk Kim
46e71b7053SJung-uk Kim=head1 SEE ALSO
47e71b7053SJung-uk Kim
48e71b7053SJung-uk KimL<ssl(7)>, L<SSL_CTX_set_verify(3)>
49e71b7053SJung-uk Kim
50e71b7053SJung-uk Kim=head1 COPYRIGHT
51e71b7053SJung-uk Kim
52e71b7053SJung-uk KimCopyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
53e71b7053SJung-uk Kim
54*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
55e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
56e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
57e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
58e71b7053SJung-uk Kim
59e71b7053SJung-uk Kim=cut
60