[EXT] [dpdk-dev v5] crypto/openssl: openssl 3.0 support on sym crypto routine
Akhil Goyal
gakhil at marvell.com
Fri Feb 25 11:39:45 CET 2022
Hi Kai,
>
> The warning messages are deprecated APIs warnings from openssl , not
> compiler warnings from gcc, the integrity of DPDK remain the same.
> Alongside openssl pmd, the ccp and qat pmd also raise the same type of
> warnings once openssl 3.0 installed.
>
> In the current intel roadmap, we will try to support 3.0 API fully for openssl and
> qat pmds by the end of year, so this patch is the first step.
> I think the warning messages are safe to stay, Unfortunately the fix ccp pmd
> driver is out of our reach.
>
When DPDK is compiled with openssl 3.0. I am seeing these errors in compilation.
So, compilation is broken and we cannot take this patch as is.
We have few options,
- fix all of these errors,
- add exception in meson.build for ignoring these errors.
- disable/skip compilation of PMDs if openssl version is >3.0
Adding only one type of APIs does not make sense, if the driver is not compiled.
In file included from ../drivers/crypto/openssl/openssl_pmd_private.h:12,
from ../drivers/crypto/openssl/rte_openssl_pmd.c:16:
/usr/local/include/openssl/dh.h:223:27: note: declared here
223 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
| ^~~~~~~~~~~~~~~
../drivers/crypto/openssl/rte_openssl_pmd.c: In function 'process_openssl_rsa_op':
../drivers/crypto/openssl/rte_openssl_pmd.c:2068:3: error: 'RSA_public_encrypt' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
2068 | ret = RSA_public_encrypt(op->rsa.message.length,
Also, avoid top posting of comments!
More information about the dev
mailing list