diff options
Diffstat (limited to 'src/lib/libssl/doc/SSL_CTX_set_ssl_version.3')
-rw-r--r-- | src/lib/libssl/doc/SSL_CTX_set_ssl_version.3 | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/src/lib/libssl/doc/SSL_CTX_set_ssl_version.3 b/src/lib/libssl/doc/SSL_CTX_set_ssl_version.3 deleted file mode 100644 index f4bd74e73b..0000000000 --- a/src/lib/libssl/doc/SSL_CTX_set_ssl_version.3 +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | .\" | ||
2 | .\" $OpenBSD: SSL_CTX_set_ssl_version.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ | ||
3 | .\" | ||
4 | .Dd $Mdocdate: December 2 2014 $ | ||
5 | .Dt SSL_CTX_SET_SSL_VERSION 3 | ||
6 | .Os | ||
7 | .Sh NAME | ||
8 | .Nm SSL_CTX_set_ssl_version , | ||
9 | .Nm SSL_set_ssl_method , | ||
10 | .Nm SSL_get_ssl_method | ||
11 | .Nd choose a new TLS/SSL method | ||
12 | .Sh SYNOPSIS | ||
13 | .In openssl/ssl.h | ||
14 | .Ft int | ||
15 | .Fn SSL_CTX_set_ssl_version "SSL_CTX *ctx" "const SSL_METHOD *method" | ||
16 | .Ft int | ||
17 | .Fn SSL_set_ssl_method "SSL *s" "const SSL_METHOD *method" | ||
18 | .Ft const SSL_METHOD * | ||
19 | .Fn SSL_get_ssl_method "SSL *ssl" | ||
20 | .Sh DESCRIPTION | ||
21 | .Fn SSL_CTX_set_ssl_version | ||
22 | sets a new default TLS/SSL | ||
23 | .Fa method | ||
24 | for | ||
25 | .Vt SSL | ||
26 | objects newly created from this | ||
27 | .Fa ctx . | ||
28 | .Vt SSL | ||
29 | objects already created with | ||
30 | .Xr SSL_new 3 | ||
31 | are not affected, except when | ||
32 | .Xr SSL_clear 3 | ||
33 | is called. | ||
34 | .Pp | ||
35 | .Fn SSL_set_ssl_method | ||
36 | sets a new TLS/SSL | ||
37 | .Fa method | ||
38 | for a particular | ||
39 | .Vt SSL | ||
40 | object | ||
41 | .Fa s . | ||
42 | It may be reset when | ||
43 | .Xr SSL_clear 3 | ||
44 | is called. | ||
45 | .Pp | ||
46 | .Fn SSL_get_ssl_method | ||
47 | returns a function pointer to the TLS/SSL method set in | ||
48 | .Fa ssl . | ||
49 | .Sh NOTES | ||
50 | The available | ||
51 | .Fa method | ||
52 | choices are described in | ||
53 | .Xr SSL_CTX_new 3 . | ||
54 | .Pp | ||
55 | When | ||
56 | .Xr SSL_clear 3 | ||
57 | is called and no session is connected to an | ||
58 | .Vt SSL | ||
59 | object, the method of the | ||
60 | .Vt SSL | ||
61 | object is reset to the method currently set in the corresponding | ||
62 | .Vt SSL_CTX | ||
63 | object. | ||
64 | .Sh RETURN VALUES | ||
65 | The following return values can occur for | ||
66 | .Fn SSL_CTX_set_ssl_version | ||
67 | and | ||
68 | .Fn SSL_set_ssl_method : | ||
69 | .Bl -tag -width Ds | ||
70 | .It 0 | ||
71 | The new choice failed. | ||
72 | Check the error stack to find out the reason. | ||
73 | .It 1 | ||
74 | The operation succeeded. | ||
75 | .El | ||
76 | .Sh SEE ALSO | ||
77 | .Xr ssl 3 , | ||
78 | .Xr SSL_clear 3 , | ||
79 | .Xr SSL_CTX_new 3 , | ||
80 | .Xr SSL_new 3 , | ||
81 | .Xr SSL_set_connect_state 3 | ||