diff options
| author | bentley <> | 2014-10-12 09:33:04 +0000 |
|---|---|---|
| committer | bentley <> | 2014-10-12 09:33:04 +0000 |
| commit | 78332233d01faa45e0bb0b1583d47cb5ad1ddc19 (patch) | |
| tree | a5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_CTX_set_ssl_version.3 | |
| parent | 4e737c824fafe5f105e5f4849a9db2569b5d53d8 (diff) | |
| download | openbsd-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.3 | 78 |
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 | ||
| 19 | sets a new default TLS/SSL | ||
| 20 | .Fa method | ||
| 21 | for | ||
| 22 | .Vt SSL | ||
| 23 | objects newly created from this | ||
| 24 | .Fa ctx . | ||
| 25 | .Vt SSL | ||
| 26 | objects already created with | ||
| 27 | .Xr SSL_new 3 | ||
| 28 | are not affected, except when | ||
| 29 | .Xr SSL_clear 3 | ||
| 30 | is called. | ||
| 31 | .Pp | ||
| 32 | .Fn SSL_set_ssl_method | ||
| 33 | sets a new TLS/SSL | ||
| 34 | .Fa method | ||
| 35 | for a particular | ||
| 36 | .Vt SSL | ||
| 37 | object | ||
| 38 | .Fa s . | ||
| 39 | It may be reset when | ||
| 40 | .Xr SSL_clear 3 | ||
| 41 | is called. | ||
| 42 | .Pp | ||
| 43 | .Fn SSL_get_ssl_method | ||
| 44 | returns a function pointer to the TLS/SSL method set in | ||
| 45 | .Fa ssl . | ||
| 46 | .Sh NOTES | ||
| 47 | The available | ||
| 48 | .Fa method | ||
| 49 | choices are described in | ||
| 50 | .Xr SSL_CTX_new 3 . | ||
| 51 | .Pp | ||
| 52 | When | ||
| 53 | .Xr SSL_clear 3 | ||
| 54 | is called and no session is connected to an | ||
| 55 | .Vt SSL | ||
| 56 | object, the method of the | ||
| 57 | .Vt SSL | ||
| 58 | object is reset to the method currently set in the corresponding | ||
| 59 | .Vt SSL_CTX | ||
| 60 | object. | ||
| 61 | .Sh RETURN VALUES | ||
| 62 | The following return values can occur for | ||
| 63 | .Fn SSL_CTX_set_ssl_version | ||
| 64 | and | ||
| 65 | .Fn SSL_set_ssl_method : | ||
| 66 | .Bl -tag -width Ds | ||
| 67 | .It 0 | ||
| 68 | The new choice failed. | ||
| 69 | Check the error stack to find out the reason. | ||
| 70 | .It 1 | ||
| 71 | The 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 | ||
