apps/s_server: Add ktls option
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Wed, 15 Sep 2021 03:39:51 +0000 (11:39 +0800)
committerPauli <pauli@openssl.org>
Sat, 18 Sep 2021 21:39:15 +0000 (07:39 +1000)
commite2ef7f1265e727567e8963aa2756a387a621ef71
treead370242f607fa69877443e86890a579f5104cac
parentbfbb62c3b0a8f8d223f84ebf7507594cee99f135
apps/s_server: Add ktls option

From openssl-3.0.0-alpha15, KTLS is turned off by default, even if
KTLS feature in compilation, which makes it difficult to use KTLS
through s_server/s_client, so a parameter option 'ktls' is added
to enable KTLS through cmdline.

At the same time, SSL_sendfile() depends on KTLS feature to work
properly, make parameters sendfile depend on parameters ktls.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16609)
apps/s_server.c
doc/man1/openssl-s_server.pod.in