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/mdc2test.c | |
parent | 959ed5316c84d0e12ad18acfd40cefe15603ddfb (diff) |
Cleanup: fix all sources that used EVP_MD_CTX_(create|init|destroy)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/mdc2test.c')
-rw-r--r-- | test/mdc2test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mdc2test.c b/test/mdc2test.c index 4cf952c3f5..938a3c13b7 100644 --- a/test/mdc2test.c +++ b/test/mdc2test.c @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) ebcdic2ascii(text, text, strlen(text)); # endif - c = EVP_MD_CTX_create(); + c = EVP_MD_CTX_new(); EVP_DigestInit_ex(c, EVP_mdc2(), NULL); EVP_DigestUpdate(c, (unsigned char *)text, strlen(text)); EVP_DigestFinal_ex(c, &(md[0]), NULL); @@ -135,7 +135,7 @@ int main(int argc, char *argv[]) } else printf("pad2 - ok\n"); - EVP_MD_CTX_destroy(c); + EVP_MD_CTX_free(c); # ifdef OPENSSL_SYS_NETWARE if (ret) printf("ERROR: %d\n", ret); |