Created attachment 212772 [details] Fix build with libressl Currently fails to build with libressl giving the following compiler errors: ---- /wrkdirs/usr/ports/devel/qca/work/qca-2.3.0/plugins/qca-ossl/qca-ossl.cpp:1275:44: error: use of undeclared identifier 'EVP_PKEY_HKDF' EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, nullptr); ^ /wrkdirs/usr/ports/devel/qca/work/qca-2.3.0/plugins/qca-ossl/qca-ossl.cpp:2826:11: error: use of undeclared identifier 'RSA_F_RSA_OSSL_PRIVATE_DECRYPT' RSAerr(RSA_F_RSA_OSSL_PRIVATE_DECRYPT, RSA_R_UNKNOWN_PADDING_TYPE); ^ 2 errors generated. ---- Find attached my suggested fix.
Moin moin Hm, I hoped libressl would be fine with the upgrade :) What's the version of libressl you are using? mfg Tobias
3.0.2, the latest from ports (r529239)
The code for the patch is taken from https://github.com/htcondor/htcondor/blob/master/src/condor_io/condor_auth_passwd.cpp but ignoring all return codes as the code using the new methods in qca doesn't check any return codes either -- probably not nice, but not hopefully not worse than original.
(In reply to Felix Palmen from comment #3) Moin moin Gentoo [1] also has libressl-support patches for qca-2.3 -- would you mind checking if these work for you? mfg Tobias [1] https://gitweb.gentoo.org/repo/proj/libressl.git/tree/app-crypt/qca
At a first glance, gentoo's patch just disables hkdf support, so this is reduced functionality -- you still want to take that?
Created attachment 212782 [details] Fix build with libressl, patch from gentoo I can confirm the Gentoo patch builds fine
Created attachment 212783 [details] Fix build with libressl As an alternative, here's an update of my initial patch that avoids checks for LIBRESSL_VERSION_NUMBER and attempts to retain HKDF functionality
Committed. Thanks.
A commit references this bug: Author: tcberner Date: Fri Apr 3 21:25:41 UTC 2020 New revision: 530522 URL: https://svnweb.freebsd.org/changeset/ports/530522 Log: devel/qca: add support for libressl PR: 245116 Submitted by: Felix Palmen <felix@palmen-it.de> Changes: head/devel/qca/files/ head/devel/qca/files/patch-plugins_qca-ossl_qca-ossl.cpp