summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_CTX_set_ssl_version.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit78332233d01faa45e0bb0b1583d47cb5ad1ddc19 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_CTX_set_ssl_version.3
parent4e737c824fafe5f105e5f4849a9db2569b5d53d8 (diff)
downloadopenbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.tar.gz
openbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.tar.bz2
openbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
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.378
1 files changed, 78 insertions, 0 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
new file mode 100644
index 0000000000..f3753dac20
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_CTX_set_ssl_version.3
@@ -0,0 +1,78 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_CTX_SET_SSL_VERSION 3
3.Os
4.Sh NAME
5.Nm SSL_CTX_set_ssl_version ,
6.Nm SSL_set_ssl_method ,
7.Nm SSL_get_ssl_method
8.Nd choose a new TLS/SSL method
9.Sh SYNOPSIS
10.In openssl/ssl.h
11.Ft int
12.Fn SSL_CTX_set_ssl_version "SSL_CTX *ctx" "const SSL_METHOD *method"
13.Ft int
14.Fn SSL_set_ssl_method "SSL *s" "const SSL_METHOD *method"
15.Ft const SSL_METHOD *
16.Fn SSL_get_ssl_method "SSL *ssl"
17.Sh DESCRIPTION
18.Fn SSL_CTX_set_ssl_version
19sets a new default TLS/SSL
20.Fa method
21for
22.Vt SSL
23objects newly created from this
24.Fa ctx .
25.Vt SSL
26objects already created with
27.Xr SSL_new 3
28are not affected, except when
29.Xr SSL_clear 3
30is called.
31.Pp
32.Fn SSL_set_ssl_method
33sets a new TLS/SSL
34.Fa method
35for a particular
36.Vt SSL
37object
38.Fa s .
39It may be reset when
40.Xr SSL_clear 3
41is called.
42.Pp
43.Fn SSL_get_ssl_method
44returns a function pointer to the TLS/SSL method set in
45.Fa ssl .
46.Sh NOTES
47The available
48.Fa method
49choices are described in
50.Xr SSL_CTX_new 3 .
51.Pp
52When
53.Xr SSL_clear 3
54is called and no session is connected to an
55.Vt SSL
56object, the method of the
57.Vt SSL
58object is reset to the method currently set in the corresponding
59.Vt SSL_CTX
60object.
61.Sh RETURN VALUES
62The following return values can occur for
63.Fn SSL_CTX_set_ssl_version
64and
65.Fn SSL_set_ssl_method :
66.Bl -tag -width Ds
67.It 0
68The new choice failed.
69Check the error stack to find out the reason.
70.It 1
71The operation succeeded.
72.El
73.Sh SEE ALSO
74.Xr ssl 3 ,
75.Xr SSL_clear 3 ,
76.Xr SSL_CTX_new 3 ,
77.Xr SSL_new 3 ,
78.Xr SSL_set_connect_state 3