From patchwork Thu Dec 3 16:13:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5846 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:311b:b0:11b:d6c:f273 with SMTP id e27csp309594laa; Thu, 3 Dec 2026 08:13:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGX7deQZU6ry0oVQJR1BJnj1xuFARNxWHsx8wQK4+eyK8KRlNNVsPrErDgUSMzKF9rUeqSg8v621y8=@openvpn.net X-Received: by 2002:a05:701b:455b:10b0:1b3:b833:6565 with SMTP id a92af1059eb24-1b5568a1550mr37760614c88.20.1796314413513; Thu, 03 Dec 2026 08:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796314413; cv=none; d=google.com; s=arc-20260327; b=R8Xgtg9Kg/lcqmkoN/yjYGesFwUXDqyl6myPaDXWj0a2s7xZ0Mxl/aqOFxCkSx1Jkr 96KOI3Ix2TNL4saAc/OqE6241muUzmv7Gi2AHl0vRhG2AFJnvJaWgtvZMfySpITpS6zU 9kZiz2CIj4I4ARgBkemrAvaBnk8UroqDuIUnfLxc/6rWwfuMwb8KEW30h4UZ3J9W9cQy Vbg+EcaLUW6aOUkbl8wwqDAFQPh0JXKMPC8Dv02fACkIsOUesKrkORLCC6V2L2jhq6Sc nQSvR715Mpw/JFvJhUZz1R1wdfQVeCj4ncU4R6LaIpdVJ5KUwND3jlbjRzGD1w6IeIjE 7fTg== 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=PMazw2tJN577JHa3tgEPqHVpOu3Fbq/9ov9ZgRVPj8w=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=fdg1XKeJPcEC4RikUbJjo4PhrLJP9yHW/Abaij/h+U9rJL9g26QxMFyXGBF0skVuW6 Q5fpKjS61QW/UCFav1my4L+Y9HizxzaoKtUes9rSATPfywa57/slHl+jjFY7fMN9h7H+ lL2xFFdcqlHrxjwVhyMPbryG37HkdZKOXI2a9+1sx0Aqonl/RyB378NWoIuj79Bass+V bvRsPbD1Gz8VNJ4Q+VRIFds+EQlg2079ffqFaiyZu13gjwSNWyrM3zOvgPS4hKDFoPNl QFpIOCd6FJ4XtVC6O7bvJ8a2aEUEyVxePjLmKGVvK99lPn3lTt2pNJaURR3q5VUc0XQ8 m20w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=ZhkiwvH3; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b="bBKTA/xy"; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="hw/oFqDk"; 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 a92af1059eb24-1b5566cc424si119574577c88.2.2026.12.03.08.13.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2026 08:13:33 -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=ZhkiwvH3; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b="bBKTA/xy"; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="hw/oFqDk"; 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=PMazw2tJN577JHa3tgEPqHVpOu3Fbq/9ov9ZgRVPj8w=; b=ZhkiwvH3BqhUvP /ESLHuQGgG9PrrYNXcBvEbBsXPhHgT5pEX4OJ+LL9jG8MX3UEKljyWlgAxR7sese4/2X+5DQSreIg 8hJykWLpdRNmPXdBuBi+MH0QCIIrRV2wNc04t8c6bh8k6OoDz4xfRD/jayPx7QGZRiOEECY3nvxAL IWM=; 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.100.1) (envelope-from ) id 1xZ9R6-000000002rT-1NmX; Thu, 03 Dec 2026 16:13:32 +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.100.1) (envelope-from ) id 1xZ9R4-000000002rN-3XJK for openvpn-devel@lists.sourceforge.net; Thu, 03 Dec 2026 16:13:30 +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=2c/ZoaXnyZxW3i+IbLsd5xghcgUP5k+4kqe+9qhLsXo=; b=bBKTA/xylNFkzGQNM41081D34D 0rJ4sSLcyT0hppEWsPsvLZy25qCAecQkUTO0e47ZmPrqK9dbZtcS/UyIg/NumV3d1tuHbB/3FN5XZ DcnhRXUCy6USH6bdr/himB5dHqo2j1NCTirwbxBK06IjFjW3mhUr9Wx52gVWSp8phjp0=; 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=2c/ZoaXnyZxW3i+IbLsd5xghcgUP5k+4kqe+9qhLsXo=; b=hw/oFqDkWo+DBzc/iktYn2ymZM enwddb7SATHeMOUYhA1aWeeicg36Em/DAbUTl2Fwume3uZXGtZ6On93CJMiXLeMKJD8qg7ZIiKkvO BJkzvhL3Ce8PUq4r9GtBzu+kZqRImCwXCs7DU3LpAH+7bJDEkEyAqJ9OHBoAK8r6UeA8=; 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.100.1) id 1xZ9R2-000000003QA-3teH for openvpn-devel@lists.sourceforge.net; Thu, 03 Dec 2026 16:13:30 +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 6B3GDMla011575 for ; Thu, 3 Dec 2026 17:13:22 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6B3GDMgl011574 for openvpn-devel@lists.sourceforge.net; Thu, 3 Dec 2026 17:13:22 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Thu, 3 Dec 2026 17:13:16 +0100 Message-ID: <20261203161321.11557-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 Usage introduced in commit a384115456c190ec7c7ec5cdfae1624d6d196f31 ("Reject certificates with too large serial numbers"). Change-Id: Ic4a2611bcd77f2c00fe9176ea034996cd35f7988 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/o [...] 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: 1xZ9R2-000000003QA-3teH Subject: [Openvpn-devel] [PATCH v2] openssl_compat: Add X509_get0_serialNumber for OpenSSL 1.0.2 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: 1883572182372190899 X-GMAIL-MSGID: 1883572182372190899 From: Frank Lichtenheld Usage introduced in commit a384115456c190ec7c7ec5cdfae1624d6d196f31 ("Reject certificates with too large serial numbers"). Change-Id: Ic4a2611bcd77f2c00fe9176ea034996cd35f7988 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2406 --- 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/+/2406 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h index 03ece13..42cd999 100644 --- a/src/openvpn/openssl_compat.h +++ b/src/openvpn/openssl_compat.h @@ -208,6 +208,18 @@ } /** + * Get the serial number from a X509 certificate + * + * @param x X509 certificate + * @return The certificate serial number + */ +static inline const ASN1_INTEGER * +X509_get0_serialNumber(const X509 *x) +{ + return (const ASN1_INTEGER *)X509_get_serialNumber((X509 *)x); +} + +/** * Fetch the X509 object stack from the X509 store * * @param store X509 object store