X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Fsha1test.c;h=903d786ba6de45c0f6046335602481f1f87f301e;hp=6b8ad42141e56791f0fed63ffa51523742e594b2;hb=0b2fc9286f84d12f2f103b0d29c9e6e1e2a6bf87;hpb=6e59a892db781658c050e5217127c4147c116ac9 diff --git a/test/sha1test.c b/test/sha1test.c index 6b8ad42141..903d786ba6 100644 --- a/test/sha1test.c +++ b/test/sha1test.c @@ -1,4 +1,3 @@ -/* crypto/sha/sha1test.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -96,7 +95,7 @@ int main(int argc, char *argv[]) ebcdic2ascii(test[1], test[1], strlen(test[1])); #endif - c = EVP_MD_CTX_create(); + c = EVP_MD_CTX_new(); P = test; R = ret; i = 1; @@ -136,8 +135,8 @@ int main(int argc, char *argv[]) if (err) printf("ERROR: %d\n", err); #endif + EVP_MD_CTX_free(c); EXIT(err); - EVP_MD_CTX_destroy(c); return (0); }