]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
options.c: fix version reported in --cipher warning message
authorAntonio Quartulli <a@unstable.cc>
Wed, 29 Dec 2021 17:27:14 +0000 (18:27 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 29 Dec 2021 19:47:27 +0000 (20:47 +0100)
BF-CBC is the default value for the --cipher option in OpenVPN <2.5
and not <2.6. However, the warning printed to screen talks about
"OpenVPN before 2.6", which is wrong and needs to be fixed.

Fix message by saying ".. before 2.5"

Cc: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20211229172714.6424-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23477.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index b840b767bd34a1fcb3c4f1a2ad99dd6e74ef11dd..6fdcf76491a328deeb826d74d567f281a6faa3d7 100644 (file)
@@ -3120,7 +3120,7 @@ options_postprocess_cipher(struct options *o)
          * parts of OpenVPN assert that the ciphername is set */
         o->ciphername = "BF-CBC";
 
-        msg(M_INFO, "Note: --cipher is not set. OpenVPN versions before 2.6 "
+        msg(M_INFO, "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 "