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