aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-sha1.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-05-10 09:15:36 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-10 10:13:39 (GMT)
commit2e3f2862536917cee765bf398e0f26281987307f (patch)
treeea09dc94482a5a336634cd57da561135d95d9e01 /tests/test-sha1.c
parentf1aac5c488748e124cb3eeb079cf7d7b6f1373e4 (diff)
downloadhostap-2e3f2862536917cee765bf398e0f26281987307f.zip
hostap-2e3f2862536917cee765bf398e0f26281987307f.tar.gz
hostap-2e3f2862536917cee765bf398e0f26281987307f.tar.bz2
tests: Fix couple of compiler warnings
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests/test-sha1.c')
-rw-r--r--tests/test-sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-sha1.c b/tests/test-sha1.c
index 9dcbbe9..313ae59 100644
--- a/tests/test-sha1.c
+++ b/tests/test-sha1.c
@@ -412,7 +412,7 @@ int main(int argc, char *argv[])
u8 psk[32];
struct passphrase_test *test = &passphrase_tests[i];
pbkdf2_sha1(test->passphrase,
- test->ssid, strlen(test->ssid),
+ (const u8 *) test->ssid, strlen(test->ssid),
4096, psk, 32);
if (memcmp(psk, test->psk, 32) == 0)
printf("Test case %d - OK\n", i);
@@ -426,8 +426,8 @@ int main(int argc, char *argv[])
for (i = 0; i < NUM_RFC6070_TESTS; i++) {
u8 dk[25];
struct rfc6070_test *test = &rfc6070_tests[i];
- pbkdf2_sha1(test->p, test->s, strlen(test->s), test->c,
- dk, test->dk_len);
+ pbkdf2_sha1(test->p, (const u8 *) test->s, strlen(test->s),
+ test->c, dk, test->dk_len);
if (memcmp(dk, test->dk, test->dk_len) == 0)
printf("Test case %d - OK\n", i);
else {