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