From patchwork Mon Aug 4 09:10:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 4350 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:6302:b0:671:5a2c:6455 with SMTP id a2csp1210482maf; Mon, 4 Aug 2025 02:10:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVtkL3HhdSxq0EI1aZYPSwVlsipE7FmEfrJX8b9kpjy51jH5yK3e2mv81UYmlnMgfBD/mUy245fvv0=@openvpn.net X-Google-Smtp-Source: AGHT+IGzb218lFWbAKUSXMzZ3Pi65x7Ipp7O+kGiR+P65ouaGSgJCpIrlmOMx32nBzHTOblQ45W4 X-Received: by 2002:a05:6870:d68d:b0:2ef:a257:1123 with SMTP id 586e51a60fabf-30b676a27a5mr4899480fac.2.1754298639431; Mon, 04 Aug 2025 02:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1754298639; cv=none; d=google.com; s=arc-20240605; b=WABOvK/3IqY/jm2OLwlTdhQccs3V05wEGR+gcdxSzB0ibjRBf2fNatpPagv/3/ndrO zRgqzVt60MM6L8qkUeCr3fp9bUzMT6QDCD+O9Un+sbRxAiHhTbeZdvmOGZR1akkM97f+ yQX231KsIHA+/l1M044qvG+ZxRTNGQMLA4i7Ah/s0/H4ZkNz3IuZFt7KxMYBbytkGKVl KyV59NrvridS5XrxtejfrDgeWjmRWFWA9L7nLwvhcCz/xU09XVp9aKP0ZdkKVRoMznfR GXQnI8a08fLR1D3iMv16xfYgArPPq7SwdI2zdaAoCpZwY+UmCeS0b3peR3Pfe3hg1bGl NDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=PwvVIvPk16Gm1mSJyz4Kev0O8pl89jkIrAa09VYPZvk=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=M/hBENr/e8CvT2u8PGAS/wXD2VLw6gxK++N04M9EaG/TvUKzA8glJjvIgTVVCqBbss Ed7SliuiQMeuWDaxsadqTLBIninrWFWwwjUZ9a5aQI41SN6q6y+Gy/PpwZgI39Bn3yrZ WrvdSmzAfIFfTnbqsj7Nh+2ov4wn/rlFh3H4xgy9iaqnyoPpEkMYlDSdga+UtX6SVAyI rB4APnUQqGW91JEpaa/HZ+E/Hj66piweD3oTRBWK/pdHlU2clyPI/By2CEc+vo2stm97 mHLEq398G9WTRun3krZnNN0CXTAqnF3oOJEVKMSxokY7yLk5g8cyyNjs8koaG+CAW7sS gV1A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=jiHBINvV; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b="DxN2in/Z"; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="MpM5YSn/"; 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-30b859a9fffsi885787fac.367.2025.08.04.02.10.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Aug 2025 02:10:39 -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=jiHBINvV; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b="DxN2in/Z"; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="MpM5YSn/"; 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=PwvVIvPk16Gm1mSJyz4Kev0O8pl89jkIrAa09VYPZvk=; b=jiHBINvV2fM2N9Ft6qwcezpjRM 2KiZf+k4IvKUyn32xMHv5FXuzOCcZx2oV9HreQOZujInoRm1cgSxQUCt4SKwkLIwyA6TY3QunZXc2 /GdZvsOYDkabp2gCY/hk43fm5bATJD9DyC02fY/ZTpIiXOBNkvLKlv7YVub2x4OjqshM=; 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 1uirDI-0003Rn-6f; Mon, 04 Aug 2025 09:10:36 +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 1uirDG-0003RX-Ti for openvpn-devel@lists.sourceforge.net; Mon, 04 Aug 2025 09:10:35 +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=xDJi0uJVtBNpay/UhV4wuxgLidXJOjgJb/YiiEnL4WQ=; b=DxN2in/Z0ZUUvXIdKbCbL5nazh AbInEnObnqodvtNaEfyr5/2fitJZYmgHU/3ZoIjgBKR2dR6/yay+CVvknri2X2ClrekGuOzRsSesl gTHiKXm+W7DEKA468Nrlca+gygAiRhT/M9US4mRVn0nCLBUfzttvBf4AG5CFM77gQFIU=; 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=xDJi0uJVtBNpay/UhV4wuxgLidXJOjgJb/YiiEnL4WQ=; b=MpM5YSn/PNW610nmodRGurJzqR wnQC8Ix0S2biqucfEnjYkvoqCYosQCOMW2zKcsaCPcbvnTz2nOs/tDFBafcOQLL+SCRZuPuTZKcEx u3xw4BiPRZFEWEA1/kMM4abnJeNlOs9eMdzLS8evacp8z8x7S0mtMYa6RFA3gk0cPG3k=; Received: from [193.149.48.143] (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 1uirDG-0004ll-DP for openvpn-devel@lists.sourceforge.net; Mon, 04 Aug 2025 09:10:35 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.17.1.9/8.17.1.9) with ESMTP id 5749ARtl013531 for ; Mon, 4 Aug 2025 11:10:27 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.1/8.18.1/Submit) id 5749ARt2013530 for openvpn-devel@lists.sourceforge.net; Mon, 4 Aug 2025 11:10:27 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 4 Aug 2025 11:10:21 +0200 Message-ID: <20250804091027.13509-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.49.1 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: Frank Lichtenheld These do not come out better with clang-format, so leave them be. Change-Id: I4dd0c44982955f16ec4a3f167d4e6f3e9b4dbc11 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering --- 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: 1uirDG-0004ll-DP Subject: [Openvpn-devel] [PATCH v12] Disable clang-format for some code parts 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: =?utf-8?q?1839515450095576785?= X-GMAIL-MSGID: =?utf-8?q?1839515450095576785?= From: Frank Lichtenheld These do not come out better with clang-format, so leave them be. Change-Id: I4dd0c44982955f16ec4a3f167d4e6f3e9b4dbc11 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering --- 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/+/829 This mail reflects revision 12 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpn/ssl_common.h b/src/openvpn/ssl_common.h index e9e50da..e9dd5f2 100644 --- a/src/openvpn/ssl_common.h +++ b/src/openvpn/ssl_common.h @@ -75,6 +75,7 @@ * * @{ */ +/* clang-format off */ #define S_ERROR (-2) /**< Error state. */ #define S_ERROR_PRE (-1) /**< Error state but try to send out alerts * before killing the keystore and moving @@ -105,7 +106,7 @@ #define S_GENERATED_KEYS 8 /**< The data channel keys have been generated * The TLS session is fully authenticated * when reaching this state. */ - +/* clang-format on */ /* Note that earlier versions also had a S_OP_NORMAL state that was * virtually identical with S_ACTIVE and the code still assumes everything * >= S_ACTIVE to be fully operational */ diff --git a/src/tapctl/main.c b/src/tapctl/main.c index 58ab8cc..a67540d 100644 --- a/src/tapctl/main.c +++ b/src/tapctl/main.c @@ -37,6 +37,7 @@ #endif +/* clang-format off */ const WCHAR title_string[] = _L(PACKAGE_NAME) L" " _L(PACKAGE_VERSION) ; @@ -111,6 +112,7 @@ L"\n" L"tapctl delete \n" ; +/* clang-format on */ /**