aboutsummaryrefslogtreecommitdiffstats
path: root/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c
blob: b39df99149f36132d7fdf33110129b5b2a6a48b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- lib/pkcs11h-openssl.c.orig	2024-09-04 08:44:23 UTC
+++ lib/pkcs11h-openssl.c
@@ -334,16 +334,26 @@ static struct {
 #endif
 } __openssl_methods;
 
-#if OPENSSL_VERSION_NUMBER < 0x10100001L
+#if OPENSSL_VERSION_NUMBER < 0x10100001L || defined(LIBRESSL_VERSION_NUMBER)
 static
 int
 __pkcs11h_openssl_ex_data_dup (
 	CRYPTO_EX_DATA *to,
 	CRYPTO_EX_DATA *from,
-	void **from_d,
+	void *from_d,
 	int idx,
 	long argl,
 	void *argp
+) {
+#elif OPENSSL_VERSION_NUMBER < 0x30000000L
+int
+__pkcs11h_openssl_ex_data_dup (
+        CRYPTO_EX_DATA *to,
+        const CRYPTO_EX_DATA *from,
+        void *from_d,
+        int idx,
+        long argl,
+        void *argp
 ) {
 #else
 int