Dead code cleanup: crypto/ec,ecdh,ecdsa
Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
};
|
||||
|
@@ -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 */
|
||||
};
|
||||
|
Reference in New Issue
Block a user