]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix test-sha256 build
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 10 Feb 2009 12:31:27 +0000 (14:31 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Feb 2009 12:31:27 +0000 (14:31 +0200)
wpa_supplicant/Makefile
wpa_supplicant/tests/test_sha256.c

index 555244397bfd2a27f1c3cdc4e9466cc177b544f1..d4ad42473b63e5f5a407a83c298e327245c752bc 100644 (file)
@@ -1199,7 +1199,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
index 161533ea7365054b0b875cd4248a43c131223c08..7dc460d483e8e16146b4378f9ca250ec4f2b1810 100644 (file)
@@ -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;