diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-02 00:49:35 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-07 17:40:20 +0100 |
commit | bfb0641f932490c2e7fb5f9f7cb4a88017a5abfa (patch) | |
tree | 6b6b0a9dfe55b4b3a2e5961ed1778dd156128f35 /test/ecdsatest.c | |
parent | 959ed5316c84d0e12ad18acfd40cefe15603ddfb (diff) | |
download | openssl-bfb0641f932490c2e7fb5f9f7cb4a88017a5abfa.zip openssl-bfb0641f932490c2e7fb5f9f7cb4a88017a5abfa.tar.gz openssl-bfb0641f932490c2e7fb5f9f7cb4a88017a5abfa.tar.bz2 |
Cleanup: fix all sources that used EVP_MD_CTX_(create|init|destroy)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ecdsatest.c')
-rw-r--r-- | test/ecdsatest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ecdsatest.c b/test/ecdsatest.c index dcd9ba0..a55a553 100644 --- a/test/ecdsatest.c +++ b/test/ecdsatest.c @@ -188,7 +188,7 @@ int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in) const char message[] = "abc"; unsigned char digest[20]; unsigned int dgst_len = 0; - EVP_MD_CTX *md_ctx = EVP_MD_CTX_create(); + EVP_MD_CTX *md_ctx = EVP_MD_CTX_new(); EC_KEY *key = NULL; ECDSA_SIG *signature = NULL; BIGNUM *r = NULL, *s = NULL; @@ -246,7 +246,7 @@ int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in) ECDSA_SIG_free(signature); BN_free(r); BN_free(s); - EVP_MD_CTX_destroy(md_ctx); + EVP_MD_CTX_free(md_ctx); BN_clear_free(kinv); BN_clear_free(rp); return ret; |