From patchwork Thu Aug 13 14:51:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5228 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:5508:b0:87d:ab56:3700 with SMTP id e8csp959072mah; Thu, 13 Aug 2026 07:51:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RrTMX6VZMYrLGscMFieUaff9WGGZ8I+zjS4YAnFKB/D2ZWLEY2kZbh6mW/GLzC/q0yOU8i2Wx4dHlw=@openvpn.net X-Received: by 2002:a05:6870:b0ed:b0:448:908d:27e0 with SMTP id 586e51a60fabf-45e621e4943mr5345112fac.4.1786632697783; Thu, 13 Aug 2026 07:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1786632697; cv=none; d=google.com; s=arc-20260327; b=rzlbxbg/keJAxdjEGyPYd0T93wytIfCbqi+PU+o6toH7t9peqEQwrksbW3NkNX0Egb 94zr9YlIWi0xi2i3aH/RsO8gzO25LuE7fVDsbWWg3S3Njxy/btI6gSdE80YeJsgYsOCq rBLzgXGCKTo/AqrY4sofEfEjVxn0pCA2u+nCNoSixZqi1Jjd0dd6oE1DZUz4TUqwR2Im Q9Cf1nKR1l6Ounj5L3Ps3Fje0eHyTn2Afp3MOalM8EcFSABnJtyWonpp/DJp+IkFn7Ho yMK0I6K9FrIacA3hdWMYv4D3dd/YIJv2UGTNCdIMKRgmFyoNQXv/QhQETbdHBsgMmBly xrAQ== 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=VgCjy/ecnsqvxH5VfcYNRBKoK35z3P636BGs50S4x9A=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=gDXUkY/QoLpwQPEu7U3g6gMFrVNR4ayrn09a8vsMjRbJ+fAb/Hwx3hgSCVXnZmx6jX 5OzRiYLT0ZEzfK/AF1W5c0Lgx8HNzaoJZzrmxfLtz6pd34BHwnJYm1J/e57CvRhJIqjU 1BZjh6SoXMBByx4kM4+H4Ol8ohXZFN19iDFAfPihkGMTDMVslRcktgcvbdgKD9kFaO7g OThGYnE2vxr28ymE//swtWpeqoBkb16/0zmjQp9t9vC9I2FGKjgrbNGWBmXn/lH4hf5d fG2b2YsK3twawGVwVmQU5m1d/HH1oXIO/jSNNfPv0lrXj8ycCvUJ3iQVo+K6kmn/pskl J3QQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=a1XcLMsH; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=QnYRpFYv; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=IKKzQoYW; 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 586e51a60fabf-45e6596fa6fsi2770130fac.265.2026.08.13.07.51.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2026 07:51:37 -0700 (PDT) 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=a1XcLMsH; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=QnYRpFYv; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=IKKzQoYW; 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-Owner; bh=VgCjy/ecnsqvxH5VfcYNRBKoK35z3P636BGs50S4x9A=; b=a1XcLMsHDTKa06TDlXKEQUAz5X nsQvtA/ZSEiKRHNFFqYV0YFk+tujJapmR1xf1Zkgab7ru0Kb65DrfshEMXGdC4o6tJ6KKjILZsLyo 4/BUcfwVMsKURqWuUYI730Ydm4p8SX+wgR7bMgtY+/+EQbGQzzjOTlaMZ9eXQtnTW24I=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wuWmL-0002vV-QS; Thu, 13 Aug 2026 14:51:34 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wuWmK-0002vD-0Y for openvpn-devel@lists.sourceforge.net; Thu, 13 Aug 2026 14:51:32 +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-Subscribe:List-Post:List-Owner:List-Archive; bh=bl5/OZqCfi2lA/l2YVq8RwOHacAiYQbhWCihyn9Hqqk=; b=QnYRpFYv5d7+v00nfxOcn3HVK/ cJo6lFg5UrHIAiaeB2HGRVTU8ZgWl28oPcJKkvaC+pmTqtjel8mcfzmqIMBv/MbzDdTRgjdpjtMhA 6wtTUQAWqU11Cq/LOFcGyJ1Y0kCP16M/XAVQJl8js99x2in63dCoJXiI5yqbY5mYVuu8=; 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-Subscribe: List-Post:List-Owner:List-Archive; bh=bl5/OZqCfi2lA/l2YVq8RwOHacAiYQbhWCihyn9Hqqk=; b=IKKzQoYWEAQMSfH3HAHhzsc7ws zCZeJUtBzhCxey5N/MdPqSY0ADjlBxgbPlHkCvD1r8iLmInfr/9qE7s1+VTHjTQ1QwERi+C3bjmWS ZsScih+ALHwdmvOe4X+q4TrDcvTgqYa8P9LJAmQl5GwNpYZMYAuDdaHKN7PiHHEOf18M=; 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.95) id 1wuWmL-0003zd-Gd for openvpn-devel@lists.sourceforge.net; Thu, 13 Aug 2026 14:51:31 +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 67DEpNBw014620 for ; Thu, 13 Aug 2026 16:51:23 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 67DEpN1T014619 for openvpn-devel@lists.sourceforge.net; Thu, 13 Aug 2026 16:51:23 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Thu, 13 Aug 2026 16:51:17 +0200 Message-ID: <20260813145122.14606-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: 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: From: Max Fillinger size_t being the same as unsigned long is true on Linux, but this produces a warning when cross-compiling for Windows. Replace %lu with the correct format specifier %zu. 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: 1wuWmL-0003zd-Gd Subject: [Openvpn-devel] [PATCH v1] Fix format string specifier for size_t X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1873420167602465929 X-GMAIL-MSGID: 1873420167602465929 From: Max Fillinger size_t being the same as unsigned long is true on Linux, but this produces a warning when cross-compiling for Windows. Replace %lu with the correct format specifier %zu. Change-Id: Id8524d9c36ea913d557d3f43f1f62acc4186b4eb Signed-off-by: Max Fillinger Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1843 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1843 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpn/pkcs11_mbedtls.c b/src/openvpn/pkcs11_mbedtls.c index bf9d953..2183217 100644 --- a/src/openvpn/pkcs11_mbedtls.c +++ b/src/openvpn/pkcs11_mbedtls.c @@ -64,7 +64,7 @@ if (cert_blob_size > max_cert_size) { - msg(M_WARN, "PKCS#11: Certificate too large: %lu bytes, maximum is %lu", cert_blob_size, max_cert_size); + msg(M_WARN, "PKCS#11: Certificate too large: %zu bytes, maximum is %zu", cert_blob_size, max_cert_size); goto cleanup; }