blob: 12e21db6a3ab4947c4809aba0b4cc9bb81916dd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
.\"
.\" $OpenBSD: SSL_CTX_get_verify_mode.3,v 1.2 2014/12/02 14:11:01 jmc Exp $
.\"
.Dd $Mdocdate: December 2 2014 $
.Dt SSL_CTX_GET_VERIFY_MODE 3
.Os
.Sh NAME
.Nm SSL_CTX_get_verify_mode ,
.Nm SSL_get_verify_mode ,
.Nm SSL_CTX_get_verify_depth ,
.Nm SSL_get_verify_depth ,
.Nm SSL_get_verify_callback ,
.Nm SSL_CTX_get_verify_callback
.Nd get currently set verification parameters
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft int
.Fn SSL_CTX_get_verify_mode "const SSL_CTX *ctx"
.Ft int
.Fn SSL_get_verify_mode "const SSL *ssl"
.Ft int
.Fn SSL_CTX_get_verify_depth "const SSL_CTX *ctx"
.Ft int
.Fn SSL_get_verify_depth "const SSL *ssl"
.Ft int
.Fo "(*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))"
.Fa int "X509_STORE_CTX *"
.Fc
.Ft int
.Fo "(*SSL_get_verify_callback(const SSL *ssl))"
.Fa int "X509_STORE_CTX *"
.Fc
.Sh DESCRIPTION
.Fn SSL_CTX_get_verify_mode
returns the verification mode currently set in
.Fa ctx .
.Pp
.Fn SSL_get_verify_mode
returns the verification mode currently set in
.Fa ssl .
.Pp
.Fn SSL_CTX_get_verify_depth
returns the verification depth limit currently set
in
.Fa ctx .
If no limit has been explicitly set,
\(mi1 is returned and the default value will be used.
.Pp
.Fn SSL_get_verify_depth
returns the verification depth limit currently set in
.Fa ssl .
If no limit has been explicitly set,
\(mi1 is returned and the default value will be used.
.Pp
.Fn SSL_CTX_get_verify_callback
returns a function pointer to the verification callback currently set in
.Fa ctx .
If no callback was explicitly set, the
.Dv NULL
pointer is returned and the default callback will be used.
.Pp
.Fn SSL_get_verify_callback
returns a function pointer to the verification callback currently set in
.Fa ssl .
If no callback was explicitly set, the
.Dv NULL
pointer is returned and the default callback will be used.
.Sh RETURN VALUES
See
.Sx DESCRIPTION
.Sh SEE ALSO
.Xr ssl 3 ,
.Xr SSL_CTX_set_verify 3
|