mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-04-23 15:16:57 -04:00
Log the negotiated (NCP) cipher
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>
This commit is contained in:
parent
986b930862
commit
d4071dd155
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue