From: Boris Pismenny Date: Thu, 6 Dec 2018 19:17:26 +0000 (+0200) Subject: apps: print Kernel receive side TLS in s_client and s_server X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=005080aa62a8da4a64cd749a2620a89b29e5be26;p=openssl apps: print Kernel receive side TLS in s_client and s_server Reviewed-by: Bernd Edlinger Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7848) --- diff --git a/apps/s_client.c b/apps/s_client.c index 6d7a83f3a9..bb4f0aab16 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -3313,6 +3313,8 @@ static void print_stuff(BIO *bio, SSL *s, int full) #ifndef OPENSSL_NO_KTLS if (BIO_get_ktls_send(SSL_get_wbio(s))) BIO_printf(bio_err, "Using Kernel TLS for sending\n"); + if (BIO_get_ktls_recv(SSL_get_rbio(s))) + BIO_printf(bio_err, "Using Kernel TLS for receiving\n"); #endif if (OSSL_TRACE_ENABLED(TLS)) { diff --git a/apps/s_server.c b/apps/s_server.c index 92d4579aeb..381b1c96ca 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2921,6 +2921,8 @@ static void print_connection_info(SSL *con) #ifndef OPENSSL_NO_KTLS if (BIO_get_ktls_send(SSL_get_wbio(con))) BIO_printf(bio_err, "Using Kernel TLS for sending\n"); + if (BIO_get_ktls_recv(SSL_get_rbio(con))) + BIO_printf(bio_err, "Using Kernel TLS for receiving\n"); #endif (void)BIO_flush(bio_s_out);