diff options
| author | schwarze <> | 2016-12-07 18:09:31 +0000 |
|---|---|---|
| committer | schwarze <> | 2016-12-07 18:09:31 +0000 |
| commit | 2f03be913172115669ca3d36b9d1a86d971dac12 (patch) | |
| tree | 62d8d50669cdebc127ecfe132a640c7784119b38 | |
| parent | 81f46327afec6d8f9d76f9f874f19bea9b163b91 (diff) | |
| download | openbsd-2f03be913172115669ca3d36b9d1a86d971dac12.tar.gz openbsd-2f03be913172115669ca3d36b9d1a86d971dac12.tar.bz2 openbsd-2f03be913172115669ca3d36b9d1a86d971dac12.zip | |
Write SSL_copy_session_id(3) manual from scratch. This function is
listed in ssl(3) and <openssl/ssl.h>, so it's clearly a public interface.
We might wish to merge the improved code from OpenSSL 1.1.0,
but that's major bump, so i'm documenting the BUGS for now.
| -rw-r--r-- | src/lib/libssl/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libssl/man/SSL_copy_session_id.3 | 76 |
2 files changed, 78 insertions, 1 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile index 5fe28e4dc6..f6e38e2e14 100644 --- a/src/lib/libssl/man/Makefile +++ b/src/lib/libssl/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.48 2016/12/07 17:09:07 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.49 2016/12/07 18:09:31 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -54,6 +54,7 @@ MAN = BIO_f_ssl.3 \ | |||
| 54 | SSL_alert_type_string.3 \ | 54 | SSL_alert_type_string.3 \ |
| 55 | SSL_clear.3 \ | 55 | SSL_clear.3 \ |
| 56 | SSL_connect.3 \ | 56 | SSL_connect.3 \ |
| 57 | SSL_copy_session_id.3 \ | ||
| 57 | SSL_do_handshake.3 \ | 58 | SSL_do_handshake.3 \ |
| 58 | SSL_dup.3 \ | 59 | SSL_dup.3 \ |
| 59 | SSL_dup_CA_list.3 \ | 60 | SSL_dup_CA_list.3 \ |
diff --git a/src/lib/libssl/man/SSL_copy_session_id.3 b/src/lib/libssl/man/SSL_copy_session_id.3 new file mode 100644 index 0000000000..2f96ecffd7 --- /dev/null +++ b/src/lib/libssl/man/SSL_copy_session_id.3 | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | .\" $OpenBSD: SSL_copy_session_id.3,v 1.1 2016/12/07 18:09:31 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 7 2016 $ | ||
| 18 | .Dt SSL_COPY_SESSION_ID 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm SSL_copy_session_id | ||
| 22 | .Nd copy session details between SSL objects | ||
| 23 | .Sh SYNOPSIS | ||
| 24 | .In openssl/ssl.h | ||
| 25 | .Ft void | ||
| 26 | .Fo SSL_copy_session_id | ||
| 27 | .Fa "SSL *to" | ||
| 28 | .Fa "const SSL *from" | ||
| 29 | .Fc | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | .Fn SSL_copy_session_id | ||
| 32 | copies the following data from | ||
| 33 | .Fa from | ||
| 34 | to | ||
| 35 | .Fa to : | ||
| 36 | .Bl -dash | ||
| 37 | .It | ||
| 38 | the pointer to the | ||
| 39 | .Vt SSL_SESSION | ||
| 40 | object, incrementing its reference count by 1 | ||
| 41 | .It | ||
| 42 | the pointer to the | ||
| 43 | .Vt SSL_METHOD | ||
| 44 | object; if that changes the method, protocol-specific data is | ||
| 45 | reinitialized | ||
| 46 | .It | ||
| 47 | the pointer to the | ||
| 48 | .Vt CERT | ||
| 49 | object, incrementing its reference count by 1 | ||
| 50 | .It | ||
| 51 | the session ID context | ||
| 52 | .El | ||
| 53 | .Pp | ||
| 54 | This function is used internally by | ||
| 55 | .Xr SSL_dup 3 | ||
| 56 | and by | ||
| 57 | .Xr BIO_ssl_copy_session_id 3 . | ||
| 58 | .Sh SEE ALSO | ||
| 59 | .Xr BIO_ssl_copy_session_id 3 , | ||
| 60 | .Xr SSL_dup 3 , | ||
| 61 | .Xr SSL_get_session 3 , | ||
| 62 | .Xr SSL_set_session 3 , | ||
| 63 | .Xr SSL_set_session_id_context 3 | ||
| 64 | .Sh HISTORY | ||
| 65 | .Fn SSL_copy_session_id | ||
| 66 | is available in all versions of OpenSSL. | ||
| 67 | .Sh BUGS | ||
| 68 | Failures of | ||
| 69 | .Xr SSL_set_session 3 , | ||
| 70 | .Xr SSL_set_session_id_context 3 , | ||
| 71 | .Xr CRYPTO_add 3 , | ||
| 72 | and reinitialization of protocol-specific data are silently ignored | ||
| 73 | and may leave | ||
| 74 | .Fa to | ||
| 75 | in an invalid or inconsistent state. | ||
| 76 | An improved version reporting failure is available in OpenSSL 1.1.0. | ||
