diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-18 14:22:20 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-18 14:22:20 +0000 |
commit | 33af4421f2ae5e4d0da3a121f51820f4b49a724c (patch) | |
tree | 4c732ed59dfe42feff1f3d39cceac9bb78c9acf5 /crypto/evp/evp_pkey.c | |
parent | 95e362c6da159eb10be1498a0959ea5acacb59f5 (diff) |
remove unnecessary code
Diffstat (limited to 'crypto/evp/evp_pkey.c')
-rw-r--r-- | crypto/evp/evp_pkey.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/evp/evp_pkey.c b/crypto/evp/evp_pkey.c index 0147f3e02a..2a02ab0793 100644 --- a/crypto/evp/evp_pkey.c +++ b/crypto/evp/evp_pkey.c @@ -305,7 +305,7 @@ EVP_PKEY *EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *p8) goto ecerr; } priv_key = EC_KEY_get0_private_key(eckey); - if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) + if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL)) { EC_POINT_free(pub_key); EVPerr(EVP_F_EVP_PKCS82PKEY, ERR_R_EC_LIB); @@ -321,12 +321,8 @@ EVP_PKEY *EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *p8) } EVP_PKEY_assign_EC_KEY(pkey, eckey); - if (ctx) - BN_CTX_free(ctx); break; ecerr: - if (ctx) - BN_CTX_free(ctx); if (eckey) EC_KEY_free(eckey); if (pkey) |