X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fhmactest.c;h=47799093bf9f1366ad83a02b0a21ee9cef723466;hp=0e0e0178957f77dab30fc68938c1a7c9a72a49d5;hb=bc9d9ce27a0c4d525e9c4e145993756fe3a7da23;hpb=bf7c68177b6fbb80406c60136654b6fefe7e3ba2 diff --git a/test/hmactest.c b/test/hmactest.c index 0e0e017895..47799093bf 100644 --- a/test/hmactest.c +++ b/test/hmactest.c @@ -1,4 +1,3 @@ -/* crypto/hmac/hmactest.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -193,8 +192,7 @@ int main(int argc, char *argv[]) } printf("test 4 ok\n"); test5: - HMAC_CTX_cleanup(ctx); - HMAC_CTX_init(ctx); + HMAC_CTX_reset(ctx); if (HMAC_Init_ex(ctx, test[4].key, test[4].key_len, NULL, NULL)) { printf("Should fail to initialise HMAC with empty MD (test 5)\n"); err++; @@ -283,8 +281,7 @@ test5: printf("test 5 ok\n"); } test6: - HMAC_CTX_cleanup(ctx); - HMAC_CTX_init(ctx); + HMAC_CTX_reset(ctx); ctx2 = HMAC_CTX_new(); if (ctx2 == NULL) { printf("HMAC malloc failure (test 6)\n");