From patchwork Sat Jan 28 22:34:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selva Nair X-Patchwork-Id: 6 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7300:c95:b0:82:e4b3:40a0 with SMTP id p21csp2226838dyk; Sat, 28 Jan 2023 14:35:07 -0800 (PST) X-Google-Smtp-Source: AK7set9SOgKen22/19J7Y7W7vvS3lR6VgJqUhTw65Mr/HRuVBs8YC2EkQqWp7eDDJKTnKiO8D88g X-Received: by 2002:a05:6a00:80f:b0:592:548e:da8c with SMTP id m15-20020a056a00080f00b00592548eda8cmr10853473pfk.17.1674945307408; Sat, 28 Jan 2023 14:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674945307; cv=none; d=google.com; s=arc-20160816; b=pcuPnIGFjBcMJ1nLaFeLF0eB5xKe6DnoTlao3QyT0to1a3rBdqM0/hv8xXQZaH5FZi Nd+ssL6UNWgp5U0y5KkNRlfuW/n1+aMNCQGewSGTjIzo4CUqLhx8zbvsxJBXagTXdah8 Qfv9+7EZaole+1qZxNBjAaHbs+Zhk1iaApzKdpoZ1VnjHBytZ2nCHoZcpHEigwj9oDst 4/lOpWwMKgu6JsbAFMKl7+ug2zwiAWG02z1fueTnUbW2DD0DNrLw/g42yX5GlshKds52 /ISGGPSC5tDGaDDSGKPg5wUEj149VYBpBgAnKuo0IfQHIaNv5acQkvkCVsFxUR6XjWPV N0qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:dkim-signature :dkim-signature; bh=U6oSGAzMwwxl5Xj0xOdEW92Cde8gKUnS/CIi4apnfJU=; b=Iwb2a7nvQw/E5vsYctNVhxf7nY3T5lbrnMBoDYgh0Xsv7J2eHdtjeK7ALVBH3yurlK oRHaT47Adc2XopnhLXYzcnh5SzgJfZhQJ7jr9ZKs1d92dOjsDeMdoD05JGks67kFN4Q5 inoi/yVnB3vXLFjQTVjBu4ZiEyp2dvpUJURd6rDJtlOwjWH/mkqzRcNNxrm9WV9nZPG+ VlyrtBkvr0ztAK0ky9WNUgoNQ9qsinvQorO5mfQuzHDS04ToPmhm8cStZwAWtLE1ffOn SiiC9bviKLzWnrA7tacUmcx8VuHm0MmxooU+ESp0TKnoBq9NzWR1DRzXCqgXYCRwmQmU UeZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=Tmia1Qwn; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=gNHaCKdP; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=NlwzSh8u; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id g4-20020aa796a4000000b00593b29fc980si168243pfk.132.2023.01.28.14.35.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2023 14:35:07 -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=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=Tmia1Qwn; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=gNHaCKdP; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=NlwzSh8u; 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=QUARANTINE dis=NONE) header.from=gmail.com 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.95) (envelope-from ) id 1pLtmZ-0000o4-BZ; Sat, 28 Jan 2023 22:34:46 +0000 Received: from [172.30.20.202] (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.95) (envelope-from ) id 1pLtmY-0000nx-2n for openvpn-devel@lists.sourceforge.net; Sat, 28 Jan 2023 22:34:45 +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:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mFoQgrjsW+NiBxEzenz9ueBI6eswYSF8AXhLC1cgAbE=; b=Tmia1QwnwmzwvmNQZVxdAgQ4lp vtJqU3pKOEhSZhs6/0Z3XKwMb6gJwPjYyMl5ECTz4r289377zVEd8lm8yxOS1TpfFMm4ITHyFKky0 SPHgcDrerVsyhjELnEo/CVv27+TbdJY5ZFtgJgV3bPWnPrNZoDtLlgmlNW8V4zoI0jdI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=mFoQgrjsW+NiBxEzenz9ueBI6eswYSF8AXhLC1cgAbE=; b=g NHaCKdP6Ts0ZWfRrpOfVpx82Ec13SNZ0zmg+tJgX5Iq/KGdnzI7hDmOAbdM/PUCbrgrTCy1oXV3ua k372XRSnn+uUg8w1nDWEtjHaQD6v7v2pLLdCaNYJenUW4yLmqc4s4J+dt1jrvPxioaTwqYsGs3RzD iiFdx6/j0S6b58gM=; Received: from mail-il1-f175.google.com ([209.85.166.175]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1pLtmS-00059A-9l for openvpn-devel@lists.sourceforge.net; Sat, 28 Jan 2023 22:34:45 +0000 Received: by mail-il1-f175.google.com with SMTP id p12so3761730ilq.10 for ; Sat, 28 Jan 2023 14:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mFoQgrjsW+NiBxEzenz9ueBI6eswYSF8AXhLC1cgAbE=; b=NlwzSh8uF3q6DVJqJuZTjCAj4XB2rhfViykia9lBeelc/mD8asJ0lleI+2WEXTO9Bk FiFeI4iOYcxxWA4zEQTLwHGnHELqcRwNQUkPaYuELjKbMNPTFU9mtjv8Rw7S2yBIMNpS 2rBhQlIj1L5IBroquAdlPvy1G7neO5gE9o1lfQVBPgnF1ED/XGpSfTppjDCXVdT3dCzm ESywLMZK+FWS5DqrTW2ViPAFFlaSzWSv1JvBzd7XmyRLQVL2J+PwXMm6DwUnoUfEqNVS iEHsb23Q2ZwAJTOQpzrivntHrRABmvKPQPqdRzwbQkGQMt1uDMHp+BIROE8XjJ2g3+eH AeKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mFoQgrjsW+NiBxEzenz9ueBI6eswYSF8AXhLC1cgAbE=; b=J0oyxOFEqFTVTcjILzujb+od5etyOEGLZ5oKDXWIUUteaUY7RW6DK7YvEuaXMX34+Z r/p8/F3VLyLQAP1c4T6KM+n7FMwM3qBK7r2+iZaT9Y8Zshb1jW2ILyVuqzFwj4j6n7+K zD4I/ogqcYLC4jJB8FWIJyhM7YS63zJDhVOA48UJ+t5vtJsh3c6klWrJuUsVpmd7jciY qHSawP72eJ1lkO7EHBriqabsT2pP/rzix92tZN47KxJGrUfUyrHxUkbTOYWOo0uojvru z1uBsqhW0wuSsNzy+dVP157gpjkH79dFDnZUlapuJ9ug1Vm0GI/SRsZVQVxeyHcy4+mE /nBA== X-Gm-Message-State: AO0yUKVcMi9SPNf9XqiXr6vkmGLUr1IXBDHznSY2o8uc6PHQCgXO127F PYwIduvS/OuWKFqGP/y+QGAPXTrhAgM= X-Received: by 2002:a92:cb03:0:b0:310:b84b:c893 with SMTP id s3-20020a92cb03000000b00310b84bc893mr1585516ilo.1.1674945275300; Sat, 28 Jan 2023 14:34:35 -0800 (PST) Received: from uranus.sansel.ca (bras-vprn-tnhlon4053w-lp130-01-70-51-222-66.dsl.bell.ca. [70.51.222.66]) by smtp.gmail.com with ESMTPSA id ay25-20020a5d9d99000000b006bba42f7822sm103930iob.52.2023.01.28.14.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 14:34:35 -0800 (PST) From: selva.nair@gmail.com To: openvpn-devel@lists.sourceforge.net Date: Sat, 28 Jan 2023 17:34:17 -0500 Message-Id: <20230128223421.2207802-1-selva.nair@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", 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: Selva Nair 1. Support selecting certificate using issuer name (goal: "planned obsolescence" of 2.6, already :) 2. Log the selected certificate's name Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [selva.nair[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.166.175 listed in list.dnswl.org] X-Headers-End: 1pLtmS-00059A-9l Subject: [Openvpn-devel] [PATCH 0/4] Improvements for cryptoapi.c 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?1756307450735704519?= X-GMAIL-MSGID: =?utf-8?q?1756307450735704519?= From: Selva Nair 1. Support selecting certificate using issuer name (goal: "planned obsolescence" of 2.6, already :) 2. Log the selected certificate's name 3. Remove Pre OpenSSL-3.01 support (goal: leaner and meaner) 4. Simplify parsing of thumbprint hex string doc/man-sections/windows-options.rst | 13 +- src/openvpn/cryptoapi.c | 629 +++------------------------ src/openvpn/options.c | 2 +- src/openvpn/win32-util.c | 15 + src/openvpn/win32-util.h | 3 + 5 files changed, 84 insertions(+), 578 deletions(-)