From: lizhi <lizhi206@huawei.com> The pkey method created in uadk_engine, will be released by openssl when the engine is destroyed. So these unused functions should be removed. Signed-off-by: lizhi <lizhi206@huawei.com> --- src/uadk_ecx.c | 18 ------------------ src/uadk_sm2.c | 9 --------- 2 files changed, 27 deletions(-) diff --git a/src/uadk_ecx.c b/src/uadk_ecx.c index f40acb4..20a0f77 100644 --- a/src/uadk_ecx.c +++ b/src/uadk_ecx.c @@ -740,15 +740,6 @@ int uadk_x25519_create_pmeth(struct uadk_pkey_meth *pkey_meth) return UADK_E_SUCCESS; } -void uadk_x25519_delete_pmeth(struct uadk_pkey_meth *pkey_meth) -{ - if (!pkey_meth || !pkey_meth->x25519) - return; - - EVP_PKEY_meth_free(pkey_meth->x25519); - pkey_meth->x25519 = NULL; -} - int uadk_x448_create_pmeth(struct uadk_pkey_meth *pkey_meth) { const EVP_PKEY_METHOD *openssl_meth; @@ -785,12 +776,3 @@ int uadk_x448_create_pmeth(struct uadk_pkey_meth *pkey_meth) return UADK_E_SUCCESS; } - -void uadk_x448_delete_pmeth(struct uadk_pkey_meth *pkey_meth) -{ - if (!pkey_meth || !pkey_meth->x448) - return; - - EVP_PKEY_meth_free(pkey_meth->x448); - pkey_meth->x448 = NULL; -} diff --git a/src/uadk_sm2.c b/src/uadk_sm2.c index f538594..9eb9f7b 100644 --- a/src/uadk_sm2.c +++ b/src/uadk_sm2.c @@ -1707,12 +1707,3 @@ int uadk_sm2_create_pmeth(struct uadk_pkey_meth *pkey_meth) return 1; } - -void uadk_sm2_delete_pmeth(struct uadk_pkey_meth *pkey_meth) -{ - if (!pkey_meth || !pkey_meth->sm2) - return; - - EVP_PKEY_meth_free(pkey_meth->sm2); - pkey_meth->sm2 = NULL; -} -- 2.43.0