HomeFreeBSD

security/pkcs11-helper: make OpenSSL 3.0 compatible

Description

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_NUMBER #elif case
to support the newer OpenSSL >= 3.0 prototype.

Approved by: ale@ (Alex Dupre, maintainer)
PR: 272190

Details

Provenance
mandreeAuthored on Jun 24 2023, 6:32 PM
Parents
R11:fd91b46c0272: games/0ad: Fix build with clang 16
Branches
Unknown
Tags
Unknown