From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 741CD42CC4; Thu, 15 Jun 2023 10:03:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EE9340DDA; Thu, 15 Jun 2023 10:03:23 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id E401040A84 for ; Thu, 15 Jun 2023 10:03:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686816202; x=1718352202; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NvJFN0pPpmnXxWO19270a4Y7Xd70gpA6BGEeVXDMDlk=; b=kRDG/gLm03rCJBzyYdcWIeYvJJlrPQyBbupp+VaaCsP+HQrYY+EOIOIl +xp8GYBmBNYu5+NvC0cDaJuoKnYXDQbYVmNtzXCV/8ekYB6mexZFH0Wy+ tp+XyO2whhFWa56zoPYjvbavfG2perKmVmLD2xsnK0orIsCmPZLP0alJ9 GKyeuH6vd55FOe+57Lgkd2lqKUsfgxgiADvsWqk440Bkqc0USFGvVaru5 p9ab+tQeJkltznaiwqVpMwgu/kS4g+I/U/+M02NQMFXa6YooO6idUwAtH EN/vR9uurvE8Bd542DQSo0XmYBlxFmbjuGX+iMWxzNILH2F9GnypNvOdo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="339191505" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="339191505" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 01:03:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="959098776" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="959098776" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com.) ([10.237.222.80]) by fmsmga006.fm.intel.com with ESMTP; 15 Jun 2023 01:03:19 -0700 From: Ciara Power To: dev@dpdk.org Cc: Ciara Power , gmuthukrishn@marvell.com, Kai Ji Subject: [PATCH] crypto/openssl: fix SM2 for older openssl version Date: Thu, 15 Jun 2023 08:03:18 +0000 Message-Id: <20230615080318.3360041-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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: gmuthukrishn@marvell.com Signed-off-by: Ciara Power --- 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