From: "plaisthos (Code Review)" Date: Mon, 16 Sep 2024 13:04:05 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XEPVC4Wt3uA="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Move cipher/data-ciphers warning to D_LOW (verb 4) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --XEPVC4Wt3uA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=3Demail to review the following change. Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4) ...................................................................... Move cipher/data-ciphers warning to D_LOW (verb 4) These warnings served a purpose in OpenVPN 2.6.x to warn people about the changed behaviour. But for 2.7 this is will be more log spam than a helpful message. So only show this warning on a high verbosity level. Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d Signed-off-by: Arne Schwabe --- M src/openvpn/options.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/746/1 diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 61f6285..6009e5f 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -3546,7 +3546,7 @@ * parts of OpenVPN assert that the ciphername is set */ o->ciphername =3D "BF-CBC"; - msg(M_INFO, "Note: --cipher is not set. OpenVPN versions before 2.= 5 " + msg(D_LOW, "Note: --cipher is not set. OpenVPN versions before 2.5= " "defaulted to BF-CBC as fallback when cipher negotiation " "failed in this case. If you need this fallback please add " "'--data-ciphers-fallback BF-CBC' to your configuration " @@ -3555,7 +3555,7 @@ else if (!o->enable_ncp_fallback && !tls_item_in_cipher_list(o->ciphername, o->ncp_ciphers)) { - msg(M_WARN, "DEPRECATED OPTION: --cipher set to '%s' but missing i= n " + msg(D_LOW, "DEPRECATED OPTION: --cipher set to '%s' but missing in= " "--data-ciphers (%s). OpenVPN ignores --cipher for cipher " "negotiations. ", o->ciphername, o->ncp_ciphers); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d Gerrit-Change-Number: 746 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --XEPVC4Wt3uA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Move cipher/data-ciphers warning to D_LOW (verb 4)

The= se warnings served a purpose in OpenVPN 2.6.x to warn people
about the c= hanged behaviour. But for 2.7 this is will be more
log spam than a helpf= ul message. So only show this warning on a
high verbosity level.

= Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Signed-off-by: Arne= Schwabe <arne@...1227...>
---
M src/openvpn/options.c
1 fil= e changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.=
openvpn.net:29418/openvpn refs/changes/46/746/1
diff --git a/src/op=
envpn/options.c b/src/openvpn/options.c
index 61f6285..6009= e5f 100644
--- a/src/openvpn/options.c
+++ = b/src/openvpn/options.c
@@ -3546,7 +3546,7 @@
* parts of OpenVPN assert that the ciphername is set */=
o->ciphername =3D "BF-CBC";

- msg(M_INFO,= "Note: --cipher is not set. OpenVPN versions before 2.5 "=
+ msg(D_LOW, "N= ote: --cipher is not set. OpenVPN versions before 2.5 "
"defaulted to BF-CBC as fallback when cipher negotiatio= n "
"failed in this case. If you nee= d this fallback please add "
"'-= -data-ciphers-fallback BF-CBC' to your configuration "
<= span>@@ -3555,7 +3555,7 @@
else if (!o->enable_ncp_= fallback
&& !tls_item_in_cipher_list(= o->ciphername, o->ncp_ciphers))
{
- msg(M_WARN, "DEPRECATED= OPTION: --cipher set to '%s' but missing in "
+ msg(D_LOW, "DEPRECATED= OPTION: --cipher set to '%s' but missing in "
"--data-ciphers (%s). OpenVPN ignores --cipher for ciphe= r "
"negotiations. ", o->ciphername, o->ncp_ciphers);
<= /span>

To view, visit change 746. To unsubscribe, or for help writin= g mail filters, visit settin= gs.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7d= feb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--XEPVC4Wt3uA=--