]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Log the negotiated (NCP) cipher
authorSteffan Karger <steffan.karger@fox-it.com>
Mon, 15 May 2017 14:43:55 +0000 (16:43 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 17 May 2017 18:40:38 +0000 (20:40 +0200)
To make it clear that NCP is in effect, print a log message (at --verb 2)
to show that we selected a cipher using NCP.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1494859435-16379-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14656.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c

index 21c9d6f7648437d228775b9dd693a0bfb8342d65..3d5e8241c96c36cb5d1ee16ff4b3f6e5cf08da13 100644 (file)
@@ -1959,6 +1959,12 @@ tls_session_update_crypto_params(struct tls_session *session,
         return false;
     }
 
+    if (strcmp(options->ciphername, session->opt->config_ciphername))
+    {
+        msg(D_HANDSHAKE, "Data Channel: using negotiated cipher '%s'",
+            options->ciphername);
+    }
+
     init_key_type(&session->opt->key_type, options->ciphername,
                   options->authname, options->keysize, true, true);