From d26c35538e250a393608ee2e5104e16967342715 Mon Sep 17 00:00:00 2001 From: ZZMarquis Date: Mon, 3 Dec 2018 15:26:39 +0800 Subject: [PATCH] remove unused code remove unused code --- crypto/gmapi/gmapi_sdf_ec.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crypto/gmapi/gmapi_sdf_ec.c b/crypto/gmapi/gmapi_sdf_ec.c index e910ff3a..fa41c9ff 100644 --- a/crypto/gmapi/gmapi_sdf_ec.c +++ b/crypto/gmapi/gmapi_sdf_ec.c @@ -305,7 +305,6 @@ SM2CiphertextValue *SM2CiphertextValue_new_from_ECCCipher(const ECCCipher *ref) { SM2CiphertextValue *ret = NULL; SM2CiphertextValue *cv = NULL; - EC_GROUP *group = NULL; /* check arguments */ if (!ref) { @@ -320,12 +319,6 @@ SM2CiphertextValue *SM2CiphertextValue_new_from_ECCCipher(const ECCCipher *ref) } /* ECCCipher => SM2CiphertextValue */ - if (!(group = EC_GROUP_new_by_curve_name(NID_sm2p256v1))) { - GMAPIerr(GMAPI_F_SM2CIPHERTEXTVALUE_NEW_FROM_ECCCIPHER, - ERR_R_EC_LIB); - goto end; - } - if (!(cv = SM2CiphertextValue_new())) { GMAPIerr(GMAPI_F_SM2CIPHERTEXTVALUE_NEW_FROM_ECCCIPHER, GMAPI_R_MALLOC_FAILED); @@ -342,7 +335,6 @@ SM2CiphertextValue *SM2CiphertextValue_new_from_ECCCipher(const ECCCipher *ref) cv = NULL; end: - EC_GROUP_free(group); SM2CiphertextValue_free(cv); return ret; }