add missing const in cast
authorChristos Zoulas <christos@zoulas.com>
Sun, 30 Sep 2018 20:54:25 +0000 (16:54 -0400)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:49 +0000 (22:02 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/ideatest.c

index 58834a11e70469d009e3da15938eb38bba04f481..947ab84670624808f7ee44fc13939bacb852b292 100644 (file)
@@ -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);