summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-12-07 20:11:55 +0000
committerschwarze <>2016-12-07 20:11:55 +0000
commit1060e3c3f05a22f3224c168f01498400c6e08259 (patch)
treec9cbd2a2bcb82be6f53fca5412835efb58728ca4
parenta9e13a31390b5b84a815ce61584d0bf126e8ce4a (diff)
downloadopenbsd-1060e3c3f05a22f3224c168f01498400c6e08259.tar.gz
openbsd-1060e3c3f05a22f3224c168f01498400c6e08259.tar.bz2
openbsd-1060e3c3f05a22f3224c168f01498400c6e08259.zip
Write SSL_renegotiate(3) manual from scratch; this function is listed
in ssl(3) and <openssl/ssl.h>, so it's clearly a public interface. More could probably be said, the code looks somewhat mysterious to me, but i think this stub is already better than nothing.
-rw-r--r--src/lib/libssl/man/Makefile3
-rw-r--r--src/lib/libssl/man/SSL_renegotiate.356
2 files changed, 58 insertions, 1 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile
index f6e38e2e14..f58f568de7 100644
--- a/src/lib/libssl/man/Makefile
+++ b/src/lib/libssl/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.49 2016/12/07 18:09:31 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.50 2016/12/07 20:11:55 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -79,6 +79,7 @@ MAN = BIO_f_ssl.3 \
79 SSL_new.3 \ 79 SSL_new.3 \
80 SSL_pending.3 \ 80 SSL_pending.3 \
81 SSL_read.3 \ 81 SSL_read.3 \
82 SSL_renegotiate.3 \
82 SSL_rstate_string.3 \ 83 SSL_rstate_string.3 \
83 SSL_session_reused.3 \ 84 SSL_session_reused.3 \
84 SSL_set1_param.3 \ 85 SSL_set1_param.3 \
diff --git a/src/lib/libssl/man/SSL_renegotiate.3 b/src/lib/libssl/man/SSL_renegotiate.3
new file mode 100644
index 0000000000..c07a1e2c2a
--- /dev/null
+++ b/src/lib/libssl/man/SSL_renegotiate.3
@@ -0,0 +1,56 @@
1.\" $OpenBSD: SSL_renegotiate.3,v 1.1 2016/12/07 20:11:55 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_RENEGOTIATE 3
19.Os
20.Sh NAME
21.Nm SSL_renegotiate
22.Nd request a new session
23.Sh SYNOPSIS
24.In openssl/ssl.h
25.Ft int
26.Fo SSL_renegotiate
27.Fa "SSL *ssl"
28.Fc
29.Sh DESCRIPTION
30.Fn SSL_renegotiate
31manually instructs
32.Fa ssl
33to renegotiate and generate a new session.
34.Pp
35This function is automatically called by
36.Xr SSL_read 3
37and
38.Xr SSL_write 3
39whenever the renegotiation byte count set by
40.Xr BIO_set_ssl_renegotiate_bytes 3
41or the timeout set by
42.Xr BIO_set_ssl_renegotiate_timeout 3
43are exceeded.
44.Sh RETURN VALUES
45.Fn SSL_renegotiate
46always returns 1 unless the protocol-specific flag
47.Dv SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS
48is set, in which case it may return 0.
49The API provides no function to set that flag;
50it can only be set by manipulating internal data structures.
51.Sh SEE ALSO
52.Xr SSL_read 3 ,
53.Xr SSL_write 3
54.Sh HISTORY
55.Fn SSL_renegotiate
56is available in all versions of OpenSSL.