diff options
author | Rich Salz <rsalz@openssl.org> | 2015-02-02 11:56:47 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-02-02 11:56:47 -0500 |
commit | c8fa2356a00cbaada8963f739e5570298311a060 (patch) | |
tree | 2e8cbad55369b60cdc902431dfcc891d9ac59544 /crypto/ecdh | |
parent | f16a64d11f55c01f56baa62ebf1dec7f8fe718cb (diff) |
Dead code cleanup: crypto/ec,ecdh,ecdsa
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/ecdh')
-rw-r--r-- | crypto/ecdh/ech_lib.c | 16 | ||||
-rw-r--r-- | crypto/ecdh/ech_locl.h | 4 | ||||
-rw-r--r-- | crypto/ecdh/ech_ossl.c | 4 |
3 files changed, 0 insertions, 24 deletions
diff --git a/crypto/ecdh/ech_lib.c b/crypto/ecdh/ech_lib.c index b910b503fb..51473682a4 100644 --- a/crypto/ecdh/ech_lib.c +++ b/crypto/ecdh/ech_lib.c @@ -103,11 +103,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) if (ecdh == NULL) return 0; -#if 0 - mtmp = ecdh->meth; - if (mtmp->finish) - mtmp->finish(eckey); -#endif #ifndef OPENSSL_NO_ENGINE if (ecdh->engine) { ENGINE_finish(ecdh->engine); @@ -115,10 +110,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) } #endif ecdh->meth = meth; -#if 0 - if (meth->init) - meth->init(eckey); -#endif return 1; } @@ -152,13 +143,6 @@ static ECDH_DATA *ECDH_DATA_new_method(ENGINE *engine) ret->flags = ret->meth->flags; CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); -#if 0 - if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { - CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); - OPENSSL_free(ret); - ret = NULL; - } -#endif return (ret); } diff --git a/crypto/ecdh/ech_locl.h b/crypto/ecdh/ech_locl.h index 4e66024c75..d61ef80c6b 100644 --- a/crypto/ecdh/ech_locl.h +++ b/crypto/ecdh/ech_locl.h @@ -68,10 +68,6 @@ struct ecdh_method { EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)); -# if 0 - int (*init) (EC_KEY *eckey); - int (*finish) (EC_KEY *eckey); -# endif int flags; char *app_data; }; diff --git a/crypto/ecdh/ech_ossl.c b/crypto/ecdh/ech_ossl.c index e60cf10b9c..278c41b84a 100644 --- a/crypto/ecdh/ech_ossl.c +++ b/crypto/ecdh/ech_ossl.c @@ -86,10 +86,6 @@ static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key, static ECDH_METHOD openssl_ecdh_meth = { "OpenSSL ECDH method", ecdh_compute_key, -#if 0 - NULL, /* init */ - NULL, /* finish */ -#endif ECDH_FLAG_FIPS_METHOD, /* flags */ NULL /* app_data */ }; |