FreeBSD Bugzilla – Attachment 242975 Details for
Bug 272190
security/pkcs11-helper: make OpenSSL 3.0 compatible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git format-patch like patch to let pkcs11-helper compile with LLVM16 and OpenSSL3.0 - run-time untested!
0001-security-pkcs11-helper-make-OpenSSL-3.0-compatible.patch (text/plain), 1.90 KB, created by
Matthias Andree
on 2023-06-24 18:39:20 UTC
(
hide
)
Description:
git format-patch like patch to let pkcs11-helper compile with LLVM16 and OpenSSL3.0 - run-time untested!
Filename:
MIME Type:
Creator:
Matthias Andree
Created:
2023-06-24 18:39:20 UTC
Size:
1.90 KB
patch
obsolete
>From dfe9f033248a43c1b9202e0ab68bcea6778f2c7b Mon Sep 17 00:00:00 2001 >From: Matthias Andree <mandree@FreeBSD.org> >Date: Sat, 24 Jun 2023 20:32:19 +0200 >Subject: [PATCH] security/pkcs11-helper: make OpenSSL 3.0 compatible > >OpenSSL 3.0 changed the prototype for the dup_func >of the customer data callback functions, the third >argument (from_d) switched from void * to void **. > >See >https://www.openssl.org/docs/man3.0/man3/CRYPTO_get_ex_new_index.html > >This breaks compile on FreeBSD-CURRENT, which also >uses the stricter LLVM/clang 16. > >Add an OPENSSL_VERSION_SWITCH to support the newer >OpenSSL >= 3.0 prototype. > >Approved by: portmgr@ (blanket just-fix-it) >--- > .../files/patch-lib_pkcs11h-openssl.c | 28 +++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > >diff --git a/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c >index e0bc64247fc7..e27454eb3d28 100644 >--- a/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c >+++ b/security/pkcs11-helper/files/patch-lib_pkcs11h-openssl.c >@@ -1,6 +1,6 @@ >---- lib/pkcs11h-openssl.c.orig 2022-10-20 14:36:14 UTC >+--- lib/pkcs11h-openssl.c.orig 2022-04-07 17:01:01 UTC > +++ lib/pkcs11h-openssl.c >-@@ -235,9 +235,13 @@ DSA_meth_free (DSA_METHOD *meth) >+@@ -235,9 +235,13 @@ DSA_meth_set1_name (DSA_METHOD *meth, const char *name > static int > DSA_meth_set1_name (DSA_METHOD *meth, const char *name) > { >@@ -14,3 +14,27 @@ > } > #endif > >+@@ -341,12 +345,22 @@ __pkcs11h_openssl_ex_data_dup ( >+ long argl, >+ void *argp >+ ) { >+-#else >++#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 >++__pkcs11h_openssl_ex_data_dup ( >++ CRYPTO_EX_DATA *to, >++ const CRYPTO_EX_DATA *from, >++ void **from_d, >+ int idx, >+ long argl, >+ void *argp >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272190
: 242975 |
243008