]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
vcpkg-ports/pkcs11-helper: indicate OpenSSL EC support
authorLev Stipakov <lev@openvpn.net>
Tue, 11 Jan 2022 15:06:47 +0000 (17:06 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 21 Jan 2022 13:23:44 +0000 (14:23 +0100)
We always build with OpenSSL >= 1.1.1, which has EC support.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220111150647.267-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23527.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
contrib/vcpkg-ports/pkcs11-helper/0003-config-w32-vc.h.in-indicate-OpenSSL-EC-support.patch [new file with mode: 0644]
contrib/vcpkg-ports/pkcs11-helper/CONTROL
contrib/vcpkg-ports/pkcs11-helper/portfile.cmake

diff --git a/contrib/vcpkg-ports/pkcs11-helper/0003-config-w32-vc.h.in-indicate-OpenSSL-EC-support.patch b/contrib/vcpkg-ports/pkcs11-helper/0003-config-w32-vc.h.in-indicate-OpenSSL-EC-support.patch
new file mode 100644 (file)
index 0000000..212181a
--- /dev/null
@@ -0,0 +1,33 @@
+From c2293864de70fec322fe7e559055530ef56b9641 Mon Sep 17 00:00:00 2001
+From: Lev Stipakov <lev@openvpn.net>
+Date: Tue, 11 Jan 2022 13:35:42 +0200
+Subject: [PATCH] config-w32-vc.h.in: indicate OpenSSL EC support
+
+Signed-off-by: Lev Stipakov <lev@openvpn.net>
+---
+ config-w32-vc.h.in | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/config-w32-vc.h b/config-w32-vc.h
+index 6d94841..db83825 100644
+--- a/config-w32-vc.h
++++ b/config-w32-vc.h
+@@ -218,3 +218,15 @@
+ /* Define to 1 if you have the `DSA_SIG_set0' function. */
+ #define HAVE_DSA_SIG_SET0 1
++
++/* Define to 1 if you have the `ECDSA_SIG_set0' function. */
++#define HAVE_ECDSA_SIG_SET0 1
++
++/* Define to 1 if you have the `EC_KEY_METHOD_get_sign' function. */
++#define HAVE_EC_KEY_METHOD_GET_SIGN 1
++
++/* Define to 1 if you have the `EC_KEY_METHOD_set_sign' function. */
++#define HAVE_EC_KEY_METHOD_SET_SIGN 1
++
++/* Define to 1 if OpenSSL has EC support. */
++#define ENABLE_PKCS11H_OPENSSL_EC 1
+-- 
+2.23.0.windows.1
+
index 372d420a9b4eb23ffd54f2706cb45c220fe573f9..6a5077fdb0c0a9c753e476737a638b603ede7dff 100644 (file)
@@ -1,4 +1,4 @@
 Source: pkcs11-helper
-Version: 1.28-1
+Version: 1.28-3
 Homepage: https://github.com/OpenSC/pkcs11-helper
 Description: pkcs11-helper is a library that simplifies the interaction with PKCS#11 providers for end-user applications.
index d8dee3f67a7507ff646f12359c5e8f46bffbd4a6..532aa69b445706dd9806f97faa1a8d902b762a6a 100644 (file)
@@ -13,6 +13,7 @@ vcpkg_extract_source_archive_ex(
     PATCHES
         0001-nmake-compatibility-with-vcpkg-nmake.patch
         0002-pkcs11.h-rename-interface-parameter.patch
+        0003-config-w32-vc.h.in-indicate-OpenSSL-EC-support.patch
         pkcs11-helper-001-RFC7512.patch
 )