1SSL_CTX_get_verify_mode(3)          OpenSSL         SSL_CTX_get_verify_mode(3)
2
3
4

NAME

6       SSL_CTX_get_verify_mode, SSL_get_verify_mode, SSL_CTX_get_verify_depth,
7       SSL_get_verify_depth, SSL_get_verify_callback, SSL_CTX_get_verify_call‐
8       back - get currently set verification parameters
9

SYNOPSIS

11        #include <openssl/ssl.h>
12
13        int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
14        int SSL_get_verify_mode(const SSL *ssl);
15        int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
16        int SSL_get_verify_depth(const SSL *ssl);
17        int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int, X509_STORE_CTX *);
18        int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *);
19

DESCRIPTION

21       SSL_CTX_get_verify_mode() returns the verification mode currently set
22       in ctx.
23
24       SSL_get_verify_mode() returns the verification mode currently set in
25       ssl.
26
27       SSL_CTX_get_verify_depth() returns the verification depth limit cur‐
28       rently set in ctx. If no limit has been explicitly set, -1 is returned
29       and the default value will be used.
30
31       SSL_get_verify_depth() returns the verification depth limit currently
32       set in ssl. If no limit has been explicitly set, -1 is returned and the
33       default value will be used.
34
35       SSL_CTX_get_verify_callback() returns a function pointer to the verifi‐
36       cation callback currently set in ctx. If no callback was explicitly
37       set, the NULL pointer is returned and the default callback will be
38       used.
39
40       SSL_get_verify_callback() returns a function pointer to the verifica‐
41       tion callback currently set in ssl. If no callback was explicitly set,
42       the NULL pointer is returned and the default callback will be used.
43

RETURN VALUES

45       See DESCRIPTION
46

SEE ALSO

48       ssl(3), SSL_CTX_set_verify(3)
49
50
51
520.9.8b                            2005-03-30        SSL_CTX_get_verify_mode(3)
Impressum