aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-02-10 12:31:27 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-15 13:09:30 (GMT)
commit777ac9643dd87e10e829adf2977a24d08e176490 (patch)
treee81c2270fb8afcfe58638c724d46fdf0a0c70fc4 /wpa_supplicant
parent564a0d087cf1bcdffa8fc19ec8b51e2249977551 (diff)
downloadhostap-06-777ac9643dd87e10e829adf2977a24d08e176490.zip
hostap-06-777ac9643dd87e10e829adf2977a24d08e176490.tar.gz
hostap-06-777ac9643dd87e10e829adf2977a24d08e176490.tar.bz2
Fix test-sha256 build
(cherry picked from commit 4225097c5a22db0223207bb318d93ecbff924a58)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Makefile2
-rw-r--r--wpa_supplicant/tests/test_sha256.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index ef81530..11ad13a 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1179,7 +1179,7 @@ test-sha1: $(TEST_SHA1_OBJS)
./test-sha1
rm test-sha1
-TEST_SHA256_OBJS = ../src/crypto/sha256.o ../src/crypto/md5.o tests/test_sha256.o ../src/crypto/crypto_openssl.o
+TEST_SHA256_OBJS = ../src/crypto/sha256.o ../src/crypto/md5.o tests/test_sha256.o ../src/utils/os_unix.o ../src/crypto/crypto_openssl.o
test-sha256: $(TEST_SHA256_OBJS)
$(LDO) $(LDFLAGS) -o $@ $(TEST_SHA256_OBJS) $(LIBS)
./test-sha256
diff --git a/wpa_supplicant/tests/test_sha256.c b/wpa_supplicant/tests/test_sha256.c
index 161533e..7dc460d 100644
--- a/wpa_supplicant/tests/test_sha256.c
+++ b/wpa_supplicant/tests/test_sha256.c
@@ -323,7 +323,8 @@ int main(int argc, char *argv[])
}
printf("Test IEEE 802.11r KDF\n");
- sha256_prf("abc", 3, "KDF test", "data", 4, hash, sizeof(hash));
+ sha256_prf((u8 *) "abc", 3, "KDF test", (u8 *) "data", 4,
+ hash, sizeof(hash));
/* TODO: add proper test case for this */
return errors;