From patchwork Sun Oct 18 15:43:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5490 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:848c:b0:8dc:5c83:a4ec with SMTP id z12csp500068max; Sun, 18 Oct 2026 08:44:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBwm5qV3UgjjtVMfBNrdGBtdlQr5c/G+mdixE8hHLT5KtgNvA5sPHPexA3JXQoJoMDhL5CZSF3oW/4U=@openvpn.net X-Received: by 2002:a05:6830:3705:b0:824:e29:e00e with SMTP id 46e09a7af769-844ff8f7c02mr4420502a34.20.1792338261451; Sun, 18 Oct 2026 08:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792338261; cv=none; d=google.com; s=arc-20260327; b=s0u6gV51KE7moynCo49enG2TxDaDuqLvsB8LQEOGblb5ps1SB1eeECy2tw+gT0ais3 cDRNY2UoFNlEyf7bJ2hNW1GuMePwgNwTwEGJUsFU9etgDQx/kinAwJYF0GTbjIfbXQux HDD52yKTtcmf32eAD8sLJB7z/tdz5UZ7VFY+naW33FDZ4PR7TouYouMGYpz2gzlt3c+X o72/Owvru6SXH2Qix8VQ2E4KSaYvZLMjGz9LPMhoj+ACJyTGcChAq1TgHNEAXTAwdZvF IR5CoQFVN1hpNOJvbmenw/QFbup11zqwyaatcP9Rcg9s2fgdOXUJAUQUkQUbmUvLOhBV CMWA== 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=9p1fs0C+nRo/AazHI2T2oG7yaj1YvnRdtDpgSyjcFNg=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=d8/5b+jXbS8SKgwd3P0F7E6VcckIbZPf3OYgdEzFu9V8RAs3QKkTbpgwp2vOUCDc3z 9aePWQ84SE7WeI57/UiBv/IVt+Gp6Mw57gEwE0KB/NFm4XH4OtYH2OdYf8m39MqMgOnZ skEXy1L3iYMRmd835L/DMfPyblFONuoxJAC58EZp3F/Pify31j1Ka66TNRJfWmoUFF2m RdQsnw3JjsX8QLPxkLom/zfu2V072AugCXsTNtPsnK+9u5bkC78P073f6DJicUcIIbMj w7HxnBV0aEGyBuTAlcvR9qLNoSgyjRN/dlFQvq1JPPC393E14b8PxXYMXqPB+aRW9/2N JSdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=iz2x0WXt; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=kKl5YFFO; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=VLuTHHKc; 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 46e09a7af769-845ed01c578si6882742a34.140.2026.10.18.08.44.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2026 08:44:21 -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=iz2x0WXt; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=kKl5YFFO; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=VLuTHHKc; 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=9p1fs0C+nRo/AazHI2T2oG7yaj1YvnRdtDpgSyjcFNg=; b=iz2x0WXt16ZyVtD6eSKV00AVJR 3NQQcUv5Je4Xrc5caYizZDQtfKSLKR+hOpWDfUuPKqSjiQqJi1A5djpmbD0EQ+XIYBeOlUjuAPtqd y6J6PXDKe1ToZq+K662sOAwgTk7vnv5pQQZLEONCVcwG4iRHDA9vBfNk/gP+ORgdhBQc=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1xIT3R-00042H-6s; Sun, 18 Oct 2026 15:44:09 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1xIT3O-000429-9y for openvpn-devel@lists.sourceforge.net; Sun, 18 Oct 2026 15:44:07 +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=d7z3dJPP0hmktWtwiEE8Oygz74EcEGwwxsElOvXm9Ek=; b=kKl5YFFOFRnAYL5ptJ1l/DbVgW AdQ+af+xnKPt/TJtTi4JobTVi5dVhrD9VFVA9PoY1F+547xb+VXK9vlqVA7ja96hGd579eHguf3+A D8nZMRu96ZHhkvVepadOzRF+uDjHp1pbkPrjKdBNTXJRhkLbYwsZC26bPfgw69qCwS+0=; 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=d7z3dJPP0hmktWtwiEE8Oygz74EcEGwwxsElOvXm9Ek=; b=VLuTHHKc375mb+N9GvDj7eV2jQ 6bDNjvshlT/7hkEgBqdEGdp+iFVms1t2zuIvE2t4tC3ErRjfd9dg770psyvNjXn/77d0PPOe1Z9+1 464kJZa2m8yNtB2IS1moxCNrOSgq03ilqknzPT8b7+6ehjhVdEWy5h6fJ8EcSazFPkwQ=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1xIT3N-0001jq-QU for openvpn-devel@lists.sourceforge.net; Sun, 18 Oct 2026 15:44:06 +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 69IFhxSF023818 for ; Sun, 18 Oct 2026 17:43:59 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 69IFhxhX023815 for openvpn-devel@lists.sourceforge.net; Sun, 18 Oct 2026 17:43:59 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Sun, 18 Oct 2026 17:43:53 +0200 Message-ID: <20261018154358.23797-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.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-1.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: Frank Lichtenheld We already have a similar conversion in hmac_ctx_size 3.0 variant. Change-Id: I7c54aba5ce771fc4a10e4efde7d14721cbcd7bc1 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Acked-by: Gert Doering 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: 1879402884793539715 X-GMAIL-MSGID: 1879402884793539715 From: Frank Lichtenheld We already have a similar conversion in hmac_ctx_size 3.0 variant. Change-Id: I7c54aba5ce771fc4a10e4efde7d14721cbcd7bc1 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2006 --- 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/+/2006 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru Gert Doering diff --git a/src/openvpn/crypto_openssl.c b/src/openvpn/crypto_openssl.c index 29c5fa6..e6abd8f 100644 --- a/src/openvpn/crypto_openssl.c +++ b/src/openvpn/crypto_openssl.c @@ -1172,21 +1172,12 @@ HMAC_CTX_reset(ctx); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - int hmac_ctx_size(HMAC_CTX *ctx) { - return HMAC_size(ctx); + return (int)HMAC_size(ctx); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - void hmac_ctx_reset(HMAC_CTX *ctx) {