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>
... | ... |
@@ -1959,6 +1959,12 @@ tls_session_update_crypto_params(struct tls_session *session, |
1959 | 1959 |
return false; |
1960 | 1960 |
} |
1961 | 1961 |
|
1962 |
+ if (strcmp(options->ciphername, session->opt->config_ciphername)) |
|
1963 |
+ { |
|
1964 |
+ msg(D_HANDSHAKE, "Data Channel: using negotiated cipher '%s'", |
|
1965 |
+ options->ciphername); |
|
1966 |
+ } |
|
1967 |
+ |
|
1962 | 1968 |
init_key_type(&session->opt->key_type, options->ciphername, |
1963 | 1969 |
options->authname, options->keysize, true, true); |
1964 | 1970 |
|