From 4ad94864781f48b1a4b77f9cfb934622bf756ba1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 12:51:52 +0200 Subject: Adding upstream version 4.23.0. Signed-off-by: Daniel Baumann --- upstream/debian-unstable/man3/BIO_ctrl.3ssl | 34 +++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'upstream/debian-unstable/man3/BIO_ctrl.3ssl') diff --git a/upstream/debian-unstable/man3/BIO_ctrl.3ssl b/upstream/debian-unstable/man3/BIO_ctrl.3ssl index b42b11a4..9148530d 100644 --- a/upstream/debian-unstable/man3/BIO_ctrl.3ssl +++ b/upstream/debian-unstable/man3/BIO_ctrl.3ssl @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "BIO_CTRL 3SSL" -.TH BIO_CTRL 3SSL 2024-02-03 3.1.5 OpenSSL +.TH BIO_CTRL 3SSL 2024-04-04 3.2.2-dev OpenSSL .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -65,7 +65,7 @@ BIO_ctrl, BIO_callback_ctrl, BIO_ptr_ctrl, BIO_int_ctrl, BIO_reset, BIO_seek, BIO_tell, BIO_flush, BIO_eof, BIO_set_close, BIO_get_close, BIO_pending, BIO_wpending, BIO_ctrl_pending, BIO_ctrl_wpending, BIO_get_info_callback, BIO_set_info_callback, BIO_info_cb, BIO_get_ktls_send, -BIO_get_ktls_recv +BIO_get_ktls_recv, BIO_set_conn_mode, BIO_get_conn_mode, BIO_set_tfo \&\- BIO control operations .SH SYNOPSIS .IX Header "SYNOPSIS" @@ -96,6 +96,11 @@ BIO_get_ktls_recv \& \& int BIO_get_ktls_send(BIO *b); \& int BIO_get_ktls_recv(BIO *b); +\& +\& int BIO_set_conn_mode(BIO *b, int mode); +\& int BIO_get_conn_mode(BIO *b); +\& +\& int BIO_set_tfo(BIO *b, int onoff); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" @@ -139,6 +144,13 @@ macros which call \fBBIO_ctrl()\fR. sending. Otherwise, it returns zero. \&\fBBIO_get_ktls_recv()\fR returns 1 if the BIO is using the Kernel TLS data-path for receiving. Otherwise, it returns zero. +.PP +\&\fBBIO_get_conn_mode()\fR returns the BIO connection mode. \fBBIO_set_conn_mode()\fR sets +the BIO connection mode. +.PP +\&\fBBIO_set_tfo()\fR disables TCP Fast Open when \fBonoff\fR is 0, and enables TCP Fast +Open when \fBonoff\fR is nonzero. Setting the value to 1 is equivalent to setting +\&\fBBIO_SOCK_TFO\fR in \fBBIO_set_conn_mode()\fR. .SH "RETURN VALUES" .IX Header "RETURN VALUES" \&\fBBIO_reset()\fR normally returns 1 for success and <=0 for failure. File @@ -166,6 +178,21 @@ negative value or 0 on error. \fBBIO_ctrl_pending()\fR and \fBBIO_ctrl_wpending( sending. Otherwise, it returns zero. \&\fBBIO_get_ktls_recv()\fR returns 1 if the BIO is using the Kernel TLS data-path for receiving. Otherwise, it returns zero. +.PP +\&\fBBIO_set_conn_mode()\fR returns 1 for success and 0 for failure. \fBBIO_get_conn_mode()\fR +returns the current connection mode. Which may contain the bitwise-or of the +following flags: +.PP +.Vb 6 +\& BIO_SOCK_REUSEADDR +\& BIO_SOCK_V6_ONLY +\& BIO_SOCK_KEEPALIVE +\& BIO_SOCK_NONBLOCK +\& BIO_SOCK_NODELAY +\& BIO_SOCK_TFO +.Ve +.PP +\&\fBBIO_set_tfo()\fR returns 1 for success, and 0 for failure. .SH NOTES .IX Header "NOTES" \&\fBBIO_flush()\fR, because it can write data may return 0 or \-1 indicating @@ -203,6 +230,9 @@ In older versions of OpenSSL the \fBBIO_ctrl_pending()\fR and .IX Header "HISTORY" The \fBBIO_get_ktls_send()\fR and \fBBIO_get_ktls_recv()\fR macros were added in OpenSSL 3.0. They were modified to never return \-1 in OpenSSL 3.0.4. +.PP +The \fBBIO_get_conn_mode()\fR, \fBBIO_set_conn_mode()\fR and \fBBIO_set_tfo()\fR functions +were added in OpenSSL 3.2. .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright 2000\-2022 The OpenSSL Project Authors. All Rights Reserved. -- cgit v1.2.3