aboutsummaryrefslogtreecommitdiffstats
path: root/test/hmactest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-12-02 22:49:24 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-07 17:40:20 +0100
commita87a0a6e5eb7993ae7a4d2eb13e605d8b5428073 (patch)
treee79f2c2eb1e46559b9b84d28318a8d3ed43d820b /test/hmactest.c
parentdc0099e1dd013abe52d0ff4901e02cca030bec97 (diff)
downloadopenssl-a87a0a6e5eb7993ae7a4d2eb13e605d8b5428073.tar.gz
Cleanup: fix all sources that used HMAC_CTX_init
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/hmactest.c')
-rw-r--r--test/hmactest.c4
1 files changed, 2 insertions, 2 deletions
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");