summaryrefslogtreecommitdiffstats
path: root/lib/libssl/man
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-08-24 20:31:32 +0000
committertb <tb@openbsd.org>2018-08-24 20:31:32 +0000
commit679b27d05005dea27e90c95c1738ae9ca410c365 (patch)
treec5335c5f323461837051a74e78e4f1174371455d /lib/libssl/man
parentLet SSL_copy_session_id() return an int for error checking. (diff)
downloadwireguard-openbsd-679b27d05005dea27e90c95c1738ae9ca410c365.tar.xz
wireguard-openbsd-679b27d05005dea27e90c95c1738ae9ca410c365.zip
Adjust documentation for SSL_copy_session_id()
ok jsing
Diffstat (limited to 'lib/libssl/man')
-rw-r--r--lib/libssl/man/SSL_copy_session_id.315
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/libssl/man/SSL_copy_session_id.3 b/lib/libssl/man/SSL_copy_session_id.3
index 9079f9d6c11..16d1b816820 100644
--- a/lib/libssl/man/SSL_copy_session_id.3
+++ b/lib/libssl/man/SSL_copy_session_id.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: SSL_copy_session_id.3,v 1.4 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: SSL_copy_session_id.3,v 1.5 2018/08/24 20:31:32 tb Exp $
.\"
.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: August 24 2018 $
.Dt SSL_COPY_SESSION_ID 3
.Os
.Sh NAME
@@ -22,7 +22,7 @@
.Nd copy session details between SSL objects
.Sh SYNOPSIS
.In openssl/ssl.h
-.Ft void
+.Ft int
.Fo SSL_copy_session_id
.Fa "SSL *to"
.Fa "const SSL *from"
@@ -55,6 +55,9 @@ This function is used internally by
.Xr SSL_dup 3
and by
.Xr BIO_ssl_copy_session_id 3 .
+.Sh RETURN VALUES
+.Fn
+returns 1 on success and 0 on error.
.Sh SEE ALSO
.Xr BIO_ssl_copy_session_id 3 ,
.Xr SSL_dup 3 ,
@@ -69,11 +72,7 @@ appeared in SSLeay 0.4 or earlier and has been available since
.Ox 2.4 .
.Sh BUGS
Failures of
-.Xr SSL_set_session 3 ,
-.Xr SSL_set_session_id_context 3 ,
.Xr CRYPTO_add 3 ,
-and reinitialization of protocol-specific data are silently ignored
-and may leave
+are silently ignored and may leave
.Fa to
in an invalid or inconsistent state.
-An improved version reporting failure is available in OpenSSL 1.1.0.