| Message ID | 20261204142711.10920-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:6022:311b:b0:11b:d6c:f273 with SMTP id e27csp1632099laa;
Fri, 4 Dec 2026 06:27:38 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErGCgjzB7sjoV4/Z4lVcYshDRihkpg3ucwnH1i8Y76vFA7SzzaDVl40wnI4365J3dhtZ2TeWzMp/Ups=@openvpn.net
X-Received: by 2002:a05:7301:78a:b0:36f:4981:da16 with SMTP id
5a478bee46e88-387521884cdmr1955255eec.25.1796394458209;
Fri, 04 Dec 2026 06:27:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796394458; cv=none;
d=google.com; s=arc-20260327;
b=OqBXYSrn7vx8lmhRoh+lIGO6d2L373rrxSfTdGjP1V1+MI6FIvVRKUCIk7bGHpM09w
q+7+vOJGcVTld7CkHXu5DgKwXPdOo4nPpxVPVJFm9mykpNvA2xus1JcBmrD/EvevnmSW
wl86tap3OmyYF6TJmcvSFk9cMIVHskwu7f0KGLLwiDHveFKgHuqbek6g1+Dxq/vyRwqU
mg7ObW3MTH/hTeeAEqiGx8as4BUq+4YyuAnh0jyBhgBhgshK9nMG5lOx5xhN9xmIX64f
PiVHDf3L9T6tJGnTEXkhR3AF4+h01pUuIpMidKx4es/3MvpQJhLOJyJAGRZkfLSIr3UB
pOzA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature;
bh=7c8XfGz371RL31h0dTPmUULwVIudHMPYWQYONu5AwJM=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=PGh0B/Qxbd8BAJkM4NcGbsRrt2DC+/04SkRY8N8xQvadf4cnaf5bnfR8oqHJPStonI
GPpuySrfEKLKAyhupbLzgf2sdZ/DHRC7cCfraL/y0OaAwS/cgd/fmYilSgo1fywaOvcY
bKKvd8mIcGxhEleP66qunXIxvzKf/je1LZESpqHTQ4fYsGf/5bMSRzeVW8vQ9h0CWXl+
ldDuYpoReOaOUCdU1fngNcT8N8VK0XtGQOQpm/iHIMvPbOkvRMdZRn8D2qE6x+1POG9z
Me019QldJB/7ZeuufDTFKPjP2pmZZm8MJ5kfwvMOm710wW3tmT3d9zpMCmyBIo2gcsfz
1V2A==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=SG7hqBOn;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=WmzP2Brb;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=Ton4xHJA;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
5a478bee46e88-3875204ed46si9133502eec.7.2026.12.04.06.27.37
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Fri, 04 Dec 2026 06:27:38 -0800 (PST)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=SG7hqBOn;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=WmzP2Brb;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=Ton4xHJA;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post:
List-Owner; bh=7c8XfGz371RL31h0dTPmUULwVIudHMPYWQYONu5AwJM=; b=SG7hqBOn95Wyoj
j5YnmCBerlSZ8nJsjoPrUTQPFjZxegAxGWSKQ60SghVfd1GgEsaDXKi/Tivl6miULG9d26dIzJPKg
DwKXJ/hsmjit9M4YjoLGcswSsM6ZKzAxZOHWT/xWefcRLkYMC009IDpc0pqEKyAqB03uNhiRWVcoG
WVM=;
Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com)
by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1xZUG9-000000008AR-1GIm;
Fri, 04 Dec 2026 14:27:37 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1)
(envelope-from <gert@blue4.greenie.muc.de>)
id 1xZUG8-000000008AD-0AcK for openvpn-devel@lists.sourceforge.net;
Fri, 04 Dec 2026 14:27:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=jFAl4Dnc38jyFMb1A2+7HdOvyKyAo+6BMddVL5Jt9Uw=; b=WmzP2Brbh9ZKidN7NrydEywqhW
hDW+gbPqitkSGb6SqrSzrKSChI7dHaw+5FpiUFD/eFM70sxeZDIt5tG6OiOdgM8O1dyHJGGST6vk+
tFPHSprjFmb5BsL1+IF7Ie7OtSFdXGf+XrSboCepT1vPrX6diX1M3ugbnwBnDx62Xue8=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=jFAl4Dnc38jyFMb1A2+7HdOvyKyAo+6BMddVL5Jt9Uw=; b=Ton4xHJAPhrXeKQ6kG/zI/JIyU
6VIrIo73JOR1wKq6znASImpkIV/KF83zqGf3wGptChXcPK5PH3KfKEzWVAt00bcj2ZOu1bjQxgRUy
QMgh50X9js772k9SuTOVo3qtr0yNXP6UdjcrFuMzKlIw5iPbd+xp4/QSBVQPDrsbnjoY=;
Received: from [193.149.48.129] (helo=blue.greenie.muc.de)
by sfi-mx-1.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1)
id 1xZUFr-000000003bG-2LVX for openvpn-devel@lists.sourceforge.net;
Fri, 04 Dec 2026 14:27:22 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6B4ERCAY010932
for <openvpn-devel@lists.sourceforge.net>; Fri, 4 Dec 2026 15:27:12 +0100
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6B4ERCWE010931
for openvpn-devel@lists.sourceforge.net; Fri, 4 Dec 2026 15:27:12 +0100
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Fri, 4 Dec 2026 15:27:06 +0100
Message-ID: <20261204142711.10920-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.55.0
In-Reply-To:
<gerrit.1796235286000.I565d5c69e4082c8fb678597313708349a0abb7f6@gerrit.openvpn.net>
References:
<gerrit.1796235286000.I565d5c69e4082c8fb678597313708349a0abb7f6@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-2.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: 2.6 currently does not build in GHA anymore because (newly
added) microsoft warnings break -Werror builds. Backport commit a1cd0cf8a97b
(which is a real bugfix for
check_file_access_inline(options->extra_certs_file_inline...)
and commit d8e22c519190 (which is correct code that triggers new boolean
related [...]
Content analysis details: (1.3 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Headers-End: 1xZUFr-000000003bG-2LVX
Subject: [Openvpn-devel] [PATCH v2] Backport extra_certs_file bugfix + MS
bool workaround to 2.6
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: 1883656115346767898
X-GMAIL-MSGID: 1883656115346767898
|
| Series |
[Openvpn-devel,v2] Backport extra_certs_file bugfix + MS bool workaround to 2.6
|
|
Commit Message
Gert Doering
Dec. 4, 2026, 2:27 p.m. UTC
2.6 currently does not build in GHA anymore because (newly added) microsoft warnings break -Werror builds. Backport commit a1cd0cf8a97b (which is a real bugfix for check_file_access_inline(options->extra_certs_file_inline...) and commit d8e22c519190 (which is correct code that triggers new boolean related warnings). Both fixes originally written by Razvan Cojocaru. Change-Id: I565d5c69e4082c8fb678597313708349a0abb7f6 Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2396 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2396 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Frank Lichtenheld <frank@lichtenheld.com>
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 56041bb..18efe41 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -4087,7 +4087,7 @@ errs |= check_file_access_inline(options->cert_file_inline, CHKACC_FILE, options->cert_file, R_OK, "--cert"); - errs |= check_file_access_inline(options->extra_certs_file, CHKACC_FILE, + errs |= check_file_access_inline(options->extra_certs_file_inline, CHKACC_FILE, options->extra_certs_file, R_OK, "--extra-certs"); diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 2f48af4..5402463 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -2455,7 +2455,7 @@ free(multi->remote_ciphername); multi->remote_ciphername = options_string_extract_option(options, "cipher", NULL); - multi->remote_usescomp = strstr(options, ",comp-lzo,"); + multi->remote_usescomp = (strstr(options, ",comp-lzo,") != NULL); /* In OCC we send '[null-cipher]' instead 'none' */ if (multi->remote_ciphername