X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fhmactest.c;h=9fb12ad3da146e38fd96163ba0d33145aa4f65c2;hp=fc168de581622c575656be4281c3edfce73954b3;hb=a87a0a6e5eb7993ae7a4d2eb13e605d8b5428073;hpb=eda34e4bef33a3b8f1e207bf04769007c70cbd1e diff --git a/test/hmactest.c b/test/hmactest.c index fc168de581..9fb12ad3da 100644 --- a/test/hmactest.c +++ b/test/hmactest.c @@ -193,7 +193,7 @@ int main(int argc, char *argv[]) } printf("test 4 ok\n"); test5: - 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++; @@ -282,7 +282,7 @@ test5: printf("test 5 ok\n"); } test6: - HMAC_CTX_init(ctx); + HMAC_CTX_reset(ctx); ctx2 = HMAC_CTX_new(); if (ctx2 == NULL) { printf("HMAC malloc failure (test 6)\n");