Currently when configuring the session for SM2 asym on OpenSSL PMD using an older OpenSSL version than 3.0, an error returns, showing a failure status for tests.
This should skip tests, as the SM2 support is for OpenSSL version 3.0+. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Cc: gmuthukri...@marvell.com Signed-off-by: Ciara Power <ciara.po...@intel.com> --- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c index fe38e4ebd8..9497da41ef 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c +++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c @@ -1324,6 +1324,9 @@ static int openssl_set_asym_session_parameters( OSSL_PARAM_free(asym_session->u.sm2.params); return -1; +#else + OPENSSL_LOG(WARNING, "SM2 unsupported for OpenSSL Version < 3.0"); + return -ENOTSUP; #endif } default: -- 2.25.1