vcpkg-ports/pkcs11-helper: indicate OpenSSL EC support

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>
(cherry picked from commit 95b076144933e04782c031182669523dab457f15)
This commit is contained in:
Lev Stipakov 2022-01-11 17:06:47 +02:00 committed by Gert Doering
parent f71ae77ad7
commit a184e790df
3 changed files with 35 additions and 1 deletions

View File

@ -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

View 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.

View 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
)