[PATCH 1/1] drivers: define OPENSSL_API_COMPAT

Ji, Kai kai.ji at intel.com
Tue May 17 18:30:10 CEST 2022


Acked-by: Ji, Kai <kai.ji at intel.com>

> -----Original Message-----
> From: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Sent: Tuesday, May 10, 2022 4:07 PM
> To: Zhang, Roy Fan <roy.fan.zhang at intel.com>
> Cc: Chandubabu Namburu <chandu at amd.com>; dev at dpdk.org; Heinrich
> Schuchardt <heinrich.schuchardt at canonical.com>
> Subject: [PATCH 1/1] drivers: define OPENSSL_API_COMPAT
> 
> The API of the OpenSSL library has changed with version 3.0. This results in a lot
> of compiler warnings like
> 
>     ../dpdk/drivers/crypto/ccp/ccp_crypto.c:182:9:
>     warning: ‘SHA256_Transform’ is deprecated:
>     Since OpenSSL 3.0 [-Wdeprecated-declarations]
> 
> As many Linux distributions still use elder OpenSSL libraries we cannot change the
> used API now. Instead define OPENSSL_API_COMPAT to indicate that we are
> using the OpenSSL 1.1.0 API.
> 
> OPENSSL_API_COMPAT is introduced in *.c files and not in *.h files as some *.c
> files directly include OpenSSL headers.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> 2.34.1



More information about the dev mailing list