]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps: print Kernel TLS in s_client and s_server
authorBoris Pismenny <borisp@mellanox.com>
Wed, 14 Nov 2018 21:53:57 +0000 (23:53 +0200)
committerMatt Caswell <matt@openssl.org>
Fri, 7 Dec 2018 11:25:45 +0000 (11:25 +0000)
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253)

apps/s_client.c
apps/s_server.c

index 8a7613d5c7c0d6b1e91494fb7164ad9eece5cff7..8bdfbb65f1ce04d27e92fa61a6aa15e08c2ed530 100644 (file)
@@ -3245,6 +3245,10 @@ static void print_stuff(BIO *bio, SSL *s, int full)
     BIO_printf(bio, "Expansion: %s\n",
                expansion ? SSL_COMP_get_name(expansion) : "NONE");
 #endif
+#ifndef OPENSSL_NO_KTLS
+    if (BIO_get_ktls_send(SSL_get_wbio(s)))
+        BIO_printf(bio_err, "Using Kernel TLS for sending\n");
+#endif
 
 #ifdef SSL_DEBUG
     {
index 692116137a864c83fbe3d148d06f4b978407aa3f..364f76b3f0842623b8436eb11bff0961fb20f499 100644 (file)
@@ -2911,6 +2911,10 @@ static void print_connection_info(SSL *con)
         }
         OPENSSL_free(exportedkeymat);
     }
+#ifndef OPENSSL_NO_KTLS
+    if (BIO_get_ktls_send(SSL_get_wbio(con)))
+        BIO_printf(bio_err, "Using Kernel TLS for sending\n");
+#endif
 
     (void)BIO_flush(bio_s_out);
 }