Fix typo.
[openssl.git] / test / hmactest.c
index 0e0e0178957f77dab30fc68938c1a7c9a72a49d5..9fb12ad3da146e38fd96163ba0d33145aa4f65c2 100644 (file)
@@ -193,8 +193,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 +282,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");