- removed asymnetric crypto xform next field.
This commit reflects asymmetric crypto API changes

Signed-off-by: Arek Kusztal <arkadiuszx.kusz...@intel.com>
---
 drivers/crypto/openssl/rte_openssl_pmd_ops.c | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c 
b/drivers/crypto/openssl/rte_openssl_pmd_ops.c
index c975ef640a..a1be96bf1d 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c
@@ -808,13 +808,6 @@ static int openssl_set_asym_session_parameters(
 {
        int ret = 0;
 
-       if ((xform->xform_type != RTE_CRYPTO_ASYM_XFORM_DH) &&
-               (xform->next != NULL)) {
-               OPENSSL_LOG(ERR, "chained xfrms are not supported on %s",
-                       rte_crypto_asym_xform_strings[xform->xform_type]);
-               return -1;
-       }
-
        switch (xform->xform_type) {
        case RTE_CRYPTO_ASYM_XFORM_RSA:
        {
@@ -1007,25 +1000,6 @@ static int openssl_set_asym_session_parameters(
                 * public and private key generate
                 */
                asym_session->u.dh.key_op = (1 << xform->dh.type);
-
-               if (xform->dh.type ==
-                       RTE_CRYPTO_ASYM_KE_PRIVATE_KEY_GENERATE) {
-                       /* check if next is pubkey */
-                       if ((xform->next != NULL) &&
-                               (xform->next->xform_type ==
-                               RTE_CRYPTO_ASYM_XFORM_DH) &&
-                               (xform->next->dh.type ==
-                               RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE)
-                               ) {
-                               /*
-                                * setup op as pub/priv key
-                                * pair generationi
-                                */
-                               asym_session->u.dh.key_op |=
-                               (1 <<
-                               RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE);
-                       }
-               }
                asym_session->u.dh.dh_key = dh;
                asym_session->xfrm_type = RTE_CRYPTO_ASYM_XFORM_DH;
                break;
-- 
2.13.6

Reply via email to