openssl/crypto/bio
Bernd Edlinger 598bd77415 Fix KTLS with BIO_new_connect
When a socket connection is done using BIO_new_connect,
the ktls_enable is done too early, and fails with ENOTCONN.
Therefore the KLTS ioctl will fail later with ENOPROTOOPT.
Fix that by doing the ktls_enable after the connection
succeeded, not when the socket is created as that will
always fail.

One example where this happens is doit_localhost in
test/ssl_old_test.c, and therefore, contrary to the expectation
the -client_ktls option did never enable the client KTLS
connection, but this was not noticed, because there was no
diagnostic output, and it was only visible with strace output.

Also enhanced the ssl_old_test -client_ktls/-server_ktls
options together with -v option to print a summary line
if and how KTLS was negotiated in server and client.

While I am already there adjusted the usage info of
the -s_cert, -s_key commands, and allow -time to print the
timings of ktls connections.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18318)
2022-05-17 13:16:03 +02:00
..
bf_buff.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bf_lbuf.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bf_nbio.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_null.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_prefix.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_readbuff.c Fix DER reading from stdin for BIO_f_readbuffer 2021-03-22 09:07:36 +10:00
bio_addr.c Exclude IPv6 code using OPENSSL_USE_IPV6 instead of AF_INET6 2022-05-09 10:06:18 +10:00
bio_cb.c Update copyright year 2021-06-17 13:24:59 +01:00
bio_dump.c Update copyright year 2021-06-17 13:24:59 +01:00
bio_err.c Update copyright year 2022-05-03 13:34:51 +01:00
bio_lib.c BIO_ctrl: Avoid spurious error being raised on NULL bio parameter 2021-09-28 12:12:32 +02:00
bio_local.h Exclude IPv6 code using OPENSSL_USE_IPV6 instead of AF_INET6 2022-05-09 10:06:18 +10:00
bio_meth.c
bio_print.c Update copyright year 2022-05-03 13:34:51 +01:00
bio_sock2.c Fix KTLS with BIO_new_connect 2022-05-17 13:16:03 +02:00
bio_sock.c Fix KTLS with BIO_new_connect 2022-05-17 13:16:03 +02:00
bss_acpt.c Exclude IPv6 code using OPENSSL_USE_IPV6 instead of AF_INET6 2022-05-09 10:06:18 +10:00
bss_bio.c Update copyright year 2022-05-03 13:34:51 +01:00
bss_conn.c Fix KTLS with BIO_new_connect 2022-05-17 13:16:03 +02:00
bss_core.c Update copyright year 2022-05-03 13:34:51 +01:00
bss_dgram.c Ensure that _GNU_SOURCE is defined for bss_dgram.c 2021-08-29 18:54:40 +02:00
bss_fd.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_file.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_log.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_mem.c Avoid NULL+X UB in bss_mem.c 2021-10-19 12:16:11 +02:00
bss_null.c Update copyright year 2021-06-17 13:24:59 +01:00
bss_sock.c Update copyright year 2022-05-03 13:34:51 +01:00
build.info BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
ossl_core_bio.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00