Closed ffontaine closed 2 years ago
the name of the method is important for openssl debug logs and interaction with application. it is used at line 1605
I guess the issue will be resolved by adding #ifndef OPENSSL_NO_DSA
and such for all the compatibility functions.
Indeed, thanks for your review. However, the issue can't be fixed by adding #ifndef OPENSSL_NO_DSA
as DSA is supported by libressl. The real issue is that libressl doesn't have DSA_meth_set1_name
(but it has RSA_meth_set1_name
).
The only 'solution' that I can found is to disable DSA_meth_set1_name
with libressl >= 3.5.0 (i.e. through
#if !(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
). Otherwise, I could also disable pkcs11-helper with libressl on buildroot side.
A more long term solution would be to add this function to libressl but I don't know how long it will takes (https://github.com/libressl-portable/openbsd/issues/130).
Can you please check https://github.com/OpenSC/pkcs11-helper/pull/56 as an alternative?
Great :)
What approach do you think is better?
I think yours is better. I'll close this one.
DSA_METHOD
is opaque since libressl 3.5.0 and https://github.com/libressl-portable/openbsd/commit/62c7bff5397fa44f595b161cd593d9456eca236e resulting in the following build failure:Fixes:
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com