summaryrefslogtreecommitdiffstats
path: root/crypto/ecdsa
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-02-02 11:56:47 -0500
committerRich Salz <rsalz@openssl.org>2015-02-02 11:56:47 -0500
commitc8fa2356a00cbaada8963f739e5570298311a060 (patch)
tree2e8cbad55369b60cdc902431dfcc891d9ac59544 /crypto/ecdsa
parentf16a64d11f55c01f56baa62ebf1dec7f8fe718cb (diff)
Dead code cleanup: crypto/ec,ecdh,ecdsa
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/ecdsa')
-rw-r--r--crypto/ecdsa/ecs_lib.c7
-rw-r--r--crypto/ecdsa/ecs_locl.h4
-rw-r--r--crypto/ecdsa/ecs_ossl.c4
3 files changed, 0 insertions, 15 deletions
diff --git a/crypto/ecdsa/ecs_lib.c b/crypto/ecdsa/ecs_lib.c
index 321b425d7c..67e521fb8a 100644
--- a/crypto/ecdsa/ecs_lib.c
+++ b/crypto/ecdsa/ecs_lib.c
@@ -131,13 +131,6 @@ static ECDSA_DATA *ECDSA_DATA_new_method(ENGINE *engine)
ret->flags = ret->meth->flags;
CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDSA, ret, &ret->ex_data);
-#if 0
- if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
- CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDSA, ret, &ret->ex_data);
- OPENSSL_free(ret);
- ret = NULL;
- }
-#endif
return (ret);
}
diff --git a/crypto/ecdsa/ecs_locl.h b/crypto/ecdsa/ecs_locl.h
index d3a5efc547..9a0666e209 100644
--- a/crypto/ecdsa/ecs_locl.h
+++ b/crypto/ecdsa/ecs_locl.h
@@ -74,10 +74,6 @@ struct ecdsa_method {
BIGNUM **r);
int (*ecdsa_do_verify) (const unsigned char *dgst, int dgst_len,
const ECDSA_SIG *sig, EC_KEY *eckey);
-# if 0
- int (*init) (EC_KEY *eckey);
- int (*finish) (EC_KEY *eckey);
-# endif
int flags;
void *app_data;
};
diff --git a/crypto/ecdsa/ecs_ossl.c b/crypto/ecdsa/ecs_ossl.c
index c232321cf9..1343850e5a 100644
--- a/crypto/ecdsa/ecs_ossl.c
+++ b/crypto/ecdsa/ecs_ossl.c
@@ -77,10 +77,6 @@ static ECDSA_METHOD openssl_ecdsa_meth = {
ecdsa_do_sign,
ecdsa_sign_setup_no_digest,
ecdsa_do_verify,
-#if 0
- NULL, /* init */
- NULL, /* finish */
-#endif
ECDSA_FLAG_FIPS_METHOD, /* flags */
NULL /* app_data */
};