From 15f77f2cae7f845811fbeabafe620a3b1d6315d8 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 30 Sep 2018 16:54:25 -0400 Subject: [PATCH] add missing const in cast Reviewed-by: Richard Levitte Reviewed-by: Viktor Dukhovni --- test/ideatest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ideatest.c b/test/ideatest.c index 58834a11e7..947ab84670 100644 --- a/test/ideatest.c +++ b/test/ideatest.c @@ -74,7 +74,7 @@ static int test_idea_cbc(void) IDEA_set_encrypt_key(k, &key); IDEA_set_decrypt_key(&key, &dkey); memcpy(iv, k, sizeof(iv)); - IDEA_cbc_encrypt((unsigned char *)text, out, text_len, &key, iv, 1); + IDEA_cbc_encrypt((const unsigned char *)text, out, text_len, &key, iv, 1); memcpy(iv, k, sizeof(iv)); IDEA_cbc_encrypt(out, out, IDEA_BLOCK, &dkey, iv, 0); IDEA_cbc_encrypt(&out[8], &out[8], text_len - 8, &dkey, iv, 0);