From 85080921096fe60c6956b1e0a13fe6f9a3f93ab6 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Sat, 17 Apr 2021 12:05:44 +0200 Subject: [PATCH] Repair --secret deprecation warning. commit 60f5889ae formally deprecated use of configs without either "tls-client" or "tls-server" - but got the booleans wrong. Fix. Signed-off-by: Gert Doering Acked-by: Antonio Quartulli Message-Id: <20210417100544.5497-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22139.html Signed-off-by: Gert Doering --- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 3dd22d528..ef854c766 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2541,7 +2541,7 @@ options_postprocess_verify_ce(const struct options *options, msg(M_USAGE, "specify only one of --tls-server, --tls-client, or --secret"); } - if (!options->tls_server || !options->tls_client) + if (!options->tls_server && !options->tls_client) { msg(M_INFO, "DEPRECATION: No tls-client or tls-server option in " "configuration detected. OpenVPN 2.7 will remove the " -- 2.47.2