diff options
Diffstat (limited to 'test/sha256t.c')
-rw-r--r-- | test/sha256t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sha256t.c b/test/sha256t.c index 25f762f82b..2ff9ed2a71 100644 --- a/test/sha256t.c +++ b/test/sha256t.c @@ -80,7 +80,7 @@ int main(int argc, char **argv) fprintf(stdout, "."); fflush(stdout); - evp = EVP_MD_CTX_create(); + evp = EVP_MD_CTX_new(); if (evp == NULL) { fflush(stdout); fprintf(stderr, "\nTEST 3 of 3 failed. (malloc failure)\n"); @@ -133,14 +133,14 @@ int main(int argc, char **argv) fprintf(stdout, "."); fflush(stdout); - EVP_MD_CTX_init(evp); + EVP_MD_CTX_reset(evp); EVP_DigestInit_ex(evp, EVP_sha224(), NULL); for (i = 0; i < 1000000; i += 64) EVP_DigestUpdate(evp, "aaaaaaaa" "aaaaaaaa" "aaaaaaaa" "aaaaaaaa" "aaaaaaaa" "aaaaaaaa" "aaaaaaaa" "aaaaaaaa", (1000000 - i) < 64 ? 1000000 - i : 64); EVP_DigestFinal_ex(evp, md, NULL); - EVP_MD_CTX_destroy(evp); + EVP_MD_CTX_free(evp); if (memcmp(md, addenum_3, sizeof(addenum_3))) { fflush(stdout); |