test-sha1
test-sha256
test-x509
+test-x509v3
TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \
- test-sha256 test-aes test-asn1 test-x509
+ test-sha256 test-aes test-asn1 test-x509 test-x509v3
all: $(TESTS)
test-x509: test-x509.o $(LIBS)
$(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
+test-x509v3: test-x509v3.o $(LIBS)
+ $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
+
run-tests: $(TESTS)
./test-aes
clean:
$(MAKE) -C ../src clean
rm -f $(TESTS) *~ *.o *.d
+ rm -f test_x509v3_nist.out.*
+ rm -f test_x509v3_nist2.out.*
-include $(OBJS:%.o=%.d)
-#!/bin/sh
+#!/bin/bash
# X.509 Path Validation Test Suite, Version 1.07
# http://csrc.nist.gov/pki/testing/x509paths_old.html
exit 1
fi
-X509TEST="./test_x509v3 -v"
+X509TEST="./test-x509v3 -v"
TMPOUT=test_x509v3_nist.out
# TODO: add support for validating CRLs
-#!/bin/sh
+#!/bin/bash
# Public Key Interoperability Test Suite (PKITS)
# http://csrc.nist.gov/pki/testing/x509paths.html
-# http://csrc.nist.gov/pki/testing/PKITS_data.zip
+# http://csrc.nist.gov/groups/ST/crypto_apps_infra/documents/PKITS_data.zip
if [ -z "$1" ]; then
echo "usage: $0 <path to root test directory>"
exit 1
fi
-X509TEST="$PWD/test_x509v3 -v"
+X509TEST="$PWD/test-x509v3 -v"
TMPOUT="$PWD/test_x509v3_nist2.out"
# TODO: add support for validating CRLs
test_wpa: $(OBJS_wpa) $(OBJS_h)
$(LDO) $(LDFLAGS) -o test_wpa $(OBJS_wpa) $(LIBS)
-OBJSx=tests/test_x509v3.o ../src/tls/asn1.o ../src/tls/x509v3.o \
- ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_unix.o \
- ../src/crypto/crypto_$(CONFIG_CRYPTO).o \
- $(MD5OBJS) $(SHA1OBJS) $(AESOBJS) \
- ../src/crypto/rc4.o $(DESOBJS) $(SHA256OBJS) \
- ../src/tls/bignum.o ../src/tls/rsa.o
-test_x509v3: $(OBJSx)
- $(LDO) $(LDFLAGS) -o test_x509v3 $(OBJSx)
-
win_if_list: win_if_list.c
$(LDO) $(LDFLAGS) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)