From patchwork Thu Jan 20 18:22:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lev Stipakov X-Patchwork-Id: 2248 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director7.mail.ord1d.rsapps.net ([172.30.191.6]) by backend41.mail.ord1d.rsapps.net with LMTP id oHGWB2X87mFULAAAqwncew (envelope-from ) for ; Mon, 24 Jan 2022 14:22:13 -0500 Received: from proxy11.mail.ord1d.rsapps.net ([172.30.191.6]) by director7.mail.ord1d.rsapps.net with LMTP id EG4OFGX87mGqEwAAovjBpQ (envelope-from ) for ; Mon, 24 Jan 2022 14:22:13 -0500 Received: from smtp13.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy11.mail.ord1d.rsapps.net with LMTPS id QP8uAFH87mELVwAAgKDEHA (envelope-from ) for ; Mon, 24 Jan 2022 14:21:53 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp13.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: ee8f2d94-7d4a-11ec-aa57-525400b197d9-1-1 Received: from [216.105.38.7] ([216.105.38.7:41724] helo=lists.sourceforge.net) by smtp13.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 0A/00-20852-46CFEE16; Mon, 24 Jan 2022 14:22:13 -0500 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.94.2) (envelope-from ) id 1nC4u9-0006bI-M7; Mon, 24 Jan 2022 19:21:28 +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.94.2) (envelope-from ) id 1nC4u7-0006bB-1E for openvpn-devel@lists.sourceforge.net; Mon, 24 Jan 2022 19:21:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding: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=QE80rKIOVkMFanWgNfpMaBMVEbE3cBCkTwHZjwBy56A=; b=PrB6GYq7hZUqibZEYs78UCVBEy JI6+WRoQPOc+u9ig2QHXH/8baVNON63u6roNbucDdlRLkc2dMUFr9aY3iz/Z0D5bkReM6uiXsUWPC 6jNJH5egonJk6SUJSGzeyUFiGwv8aC1w9xHPpfDXVMg+YSWD96mMJ0cC3RU+vSsnCRxI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding: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=QE80rKIOVkMFanWgNfpMaBMVEbE3cBCkTwHZjwBy56A=; b=ZTwmOJWkIBkdFiK3nOfV+DFhpv IWq34oqx9rbOABWW7Lcheohmm9iR4KpokRp3hhr+gGMWxplerojfCVr1xdop1zzpRKEYFnbzeCFvD lcnNnTKF/1O+oPcbnQU+liiJpEd+ZT649VHgRsV5eFYmtXgUdNWAdHjO5xcjJJncaMvA=; Received: from mail-lj1-f178.google.com ([209.85.208.178]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) id 1nC4u2-00Ay7i-IS for openvpn-devel@lists.sourceforge.net; Mon, 24 Jan 2022 19:21:25 +0000 Received: by mail-lj1-f178.google.com with SMTP id z20so2580894ljo.6 for ; Mon, 24 Jan 2022 11:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=QE80rKIOVkMFanWgNfpMaBMVEbE3cBCkTwHZjwBy56A=; b=M/07HHQs4qlLyVjmf1/wV9Kq4NjA+bNSa/zO2PZG57THoClB/boiOBi6QsqTRusfBf T9U41M2SEziQaTK4CJNyxNfzm8i5f51PHXgT9StOyZIVFLI05RgtWQ/2CGskK7zTop/7 73hfZOViZZ2w+6DBCA/O2jr6s14PqbDtxxQ4JRxzDDptnX1VDTCnSrsZ97ElgKaUHV+z 7t8SKVu/XGAbPCfpEp1zmeQUE2UkE6S6ffDMPk/D/ZZCvhxBOeAEaTOcHWCdDi4kbA/1 wCkjHXEOV4ej3/v1DAG9k4BfYZ08RRl8kiS8Mth5wOwqBarOIVl3jbE20WRJnf08/AQe 3TFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QE80rKIOVkMFanWgNfpMaBMVEbE3cBCkTwHZjwBy56A=; b=xlLjIvQ4Bib0Rn7d9AoKnS0cpsmexn6qsVkoqUn9uRbWTZ28L066zWZHS28hw1om8U 87Vk6RWP2hJUdGHJP+KqoO/sk0DtiBEnaeIo7EHvw/o9BmRoflJV+dVoB+7XFcC4imdS KzvDDQDWdE3aNI7z9M/hykDuKygg6iM2loG1wUzSWzGTZ2vQ5F7h5Xx7s0gDdzwM7oIW j85AJPPuItA7vqM2bX55PayQz74Yx2z5qv5CumVc9F38/GZUvJnD8uaz8Vvxh7Xw6xgi 9Fgl91N+eCG8viL0bCrlAyGr8pu+vhSgBdD9V7hWO+yyy+se4IdZmzTwdOZCHIF/XbZk H/pg== X-Gm-Message-State: AOAM531c4GYgFmmCB4y+4SpaVAciO/C/jGwBrwbDjasqHYQtzNxOD9fC VXuykCbOvmOjnsE/dwD00985MAcbDBA= X-Google-Smtp-Source: ABdhPJxdl3JwiEzhEa4qv2/qFkp3JMjiZc0g8Dp9n08JR/D/fxWcxWf7clfCwnxu6r3SFV8Jm1VxjA== X-Received: by 2002:a2e:9c07:: with SMTP id s7mr12367348lji.476.1643052075740; Mon, 24 Jan 2022 11:21:15 -0800 (PST) Received: from LAPTOP-4L3N7KFS.localdomain (81-175-157-115.bb.dnainternet.fi. [81.175.157.115]) by smtp.gmail.com with ESMTPSA id k4sm973202lja.46.2022.01.24.11.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 11:21:15 -0800 (PST) From: Lev Stipakov To: openvpn-devel@lists.sourceforge.net Date: Fri, 21 Jan 2022 07:22:57 +0200 Message-Id: <20220121052259.508-1-lstipakov@gmail.com> X-Mailer: git-send-email 2.17.1 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: Lev Stipakov These two patches add openssl3 support for msvc build. The first one contains fixes to xkey code to make it compilable by msvc. Second one adds openssl3 port. Lev Stipakov (2): xkey: fix msvc build msvc: switch to openssl3 Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [lstipakov[at]gmail.com] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.178 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.178 listed in list.dnswl.org] X-Headers-End: 1nC4u2-00Ay7i-IS Subject: [Openvpn-devel] [PATCH 0/2] *** msvc: switch to openssl3 *** 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: , Cc: Lev Stipakov MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Lev Stipakov These two patches add openssl3 support for msvc build. The first one contains fixes to xkey code to make it compilable by msvc. Second one adds openssl3 port. Lev Stipakov (2): xkey: fix msvc build msvc: switch to openssl3 .github/workflows/build.yaml | 2 +- .../openssl3/detect_platform.cmake | 86 ++++++++ contrib/vcpkg-ports/openssl3/portfile.cmake | 204 ++++++++++++++++++ contrib/vcpkg-ports/openssl3/usage | 11 + contrib/vcpkg-ports/openssl3/vcpkg.json | 7 + .../vcpkg-ports/pkcs11-helper/portfile.cmake | 2 +- src/openvpn/xkey_helper.c | 4 +- src/openvpn/xkey_provider.c | 13 +- 8 files changed, 317 insertions(+), 12 deletions(-) create mode 100644 contrib/vcpkg-ports/openssl3/detect_platform.cmake create mode 100644 contrib/vcpkg-ports/openssl3/portfile.cmake create mode 100644 contrib/vcpkg-ports/openssl3/usage create mode 100644 contrib/vcpkg-ports/openssl3/vcpkg.json