Commit 15f77f2c authored by Christos Zoulas's avatar Christos Zoulas Committed by Viktor Dukhovni
Browse files

add missing const in cast

parent 4b6ae3c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);