options.c: fix version reported in --cipher warning message
PATCH 1/1 options.c: fix version reported in --cipher warning message
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"
--- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/options.c +1 -1
@@ -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 "
Signature · 1 line
2.34.1
Am 29.12.21 um 18:27 schrieb Antonio Quartulli:
Quoted 5 lines
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"
Technically it is still the default value but not added to data-ciphers anymore but that doesn't matter for the message :)
Your patch has been applied to the master branch.
commit 7747e0bcdb92f0a3f0f7b27ca7d97194fb8efa97
Author: Antonio Quartulli Date: Wed Dec 29 18:27:14 2021 +0100
options.c: fix version reported in --cipher warning message
Signed-off-by: Antonio Quartulli <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg23477.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering