diff options
Diffstat (limited to 'src/lib/libssl/test/Makefile')
-rw-r--r-- | src/lib/libssl/test/Makefile | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/src/lib/libssl/test/Makefile b/src/lib/libssl/test/Makefile index 3912f82427..09e6848764 100644 --- a/src/lib/libssl/test/Makefile +++ b/src/lib/libssl/test/Makefile | |||
@@ -61,6 +61,7 @@ ENGINETEST= enginetest | |||
61 | EVPTEST= evp_test | 61 | EVPTEST= evp_test |
62 | IGETEST= igetest | 62 | IGETEST= igetest |
63 | JPAKETEST= jpaketest | 63 | JPAKETEST= jpaketest |
64 | SRPTEST= srptest | ||
64 | ASN1TEST= asn1test | 65 | ASN1TEST= asn1test |
65 | 66 | ||
66 | TESTS= alltests | 67 | TESTS= alltests |
@@ -72,7 +73,7 @@ EXE= $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT) $(ECDSATEST)$(EXE_EXT) $(ECDHTEST) | |||
72 | $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \ | 73 | $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \ |
73 | $(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \ | 74 | $(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \ |
74 | $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \ | 75 | $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \ |
75 | $(EVPTEST)$(EXE_EXT) $(IGETEST)$(EXE_EXT) $(JPAKETEST)$(EXE_EXT) \ | 76 | $(EVPTEST)$(EXE_EXT) $(IGETEST)$(EXE_EXT) $(JPAKETEST)$(EXE_EXT) $(SRPTEST)$(EXE_EXT) \ |
76 | $(ASN1TEST)$(EXE_EXT) | 77 | $(ASN1TEST)$(EXE_EXT) |
77 | 78 | ||
78 | # $(METHTEST)$(EXE_EXT) | 79 | # $(METHTEST)$(EXE_EXT) |
@@ -93,7 +94,7 @@ SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \ | |||
93 | $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ | 94 | $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ |
94 | $(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \ | 95 | $(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \ |
95 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c $(RSATEST).c \ | 96 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c $(RSATEST).c \ |
96 | $(EVPTEST).c $(IGETEST).c $(JPAKETEST).c $(ASN1TEST).c | 97 | $(EVPTEST).c $(IGETEST).c $(JPAKETEST).c $(SRPTEST).c $(ASN1TEST).c |
97 | 98 | ||
98 | EXHEADER= | 99 | EXHEADER= |
99 | HEADER= $(EXHEADER) | 100 | HEADER= $(EXHEADER) |
@@ -136,7 +137,7 @@ alltests: \ | |||
136 | test_enc test_x509 test_rsa test_crl test_sid \ | 137 | test_enc test_x509 test_rsa test_crl test_sid \ |
137 | test_gen test_req test_pkcs7 test_verify test_dh test_dsa \ | 138 | test_gen test_req test_pkcs7 test_verify test_dh test_dsa \ |
138 | test_ss test_ca test_engine test_evp test_ssl test_tsa test_ige \ | 139 | test_ss test_ca test_engine test_evp test_ssl test_tsa test_ige \ |
139 | test_jpake test_cms | 140 | test_jpake test_srp test_cms |
140 | 141 | ||
141 | test_evp: | 142 | test_evp: |
142 | ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt | 143 | ../util/shlib_wrap.sh ./$(EVPTEST) evptests.txt |
@@ -274,6 +275,9 @@ test_engine: | |||
274 | test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ | 275 | test_ssl: keyU.ss certU.ss certCA.ss certP1.ss keyP1.ss certP2.ss keyP2.ss \ |
275 | intP1.ss intP2.ss | 276 | intP1.ss intP2.ss |
276 | @echo "test SSL protocol" | 277 | @echo "test SSL protocol" |
278 | @if [ -n "$(FIPSCANLIB)" ]; then \ | ||
279 | sh ./testfipsssl keyU.ss certU.ss certCA.ss; \ | ||
280 | fi | ||
277 | ../util/shlib_wrap.sh ./$(SSLTEST) -test_cipherlist | 281 | ../util/shlib_wrap.sh ./$(SSLTEST) -test_cipherlist |
278 | @sh ./testssl keyU.ss certU.ss certCA.ss | 282 | @sh ./testssl keyU.ss certU.ss certCA.ss |
279 | @sh ./testsslproxy keyP1.ss certP1.ss intP1.ss | 283 | @sh ./testsslproxy keyP1.ss certP1.ss intP1.ss |
@@ -310,6 +314,10 @@ test_cms: | |||
310 | @echo "CMS consistency test" | 314 | @echo "CMS consistency test" |
311 | $(PERL) cms-test.pl | 315 | $(PERL) cms-test.pl |
312 | 316 | ||
317 | test_srp: $(SRPTEST)$(EXE_EXT) | ||
318 | @echo "Test SRP" | ||
319 | ../util/shlib_wrap.sh ./srptest | ||
320 | |||
313 | lint: | 321 | lint: |
314 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 322 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
315 | 323 | ||
@@ -340,7 +348,19 @@ BUILD_CMD=shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \ | |||
340 | fi; \ | 348 | fi; \ |
341 | LIBRARIES="$(LIBSSL) $(LIBCRYPTO) $(LIBKRB5)"; \ | 349 | LIBRARIES="$(LIBSSL) $(LIBCRYPTO) $(LIBKRB5)"; \ |
342 | $(MAKE) -f $(TOP)/Makefile.shared -e \ | 350 | $(MAKE) -f $(TOP)/Makefile.shared -e \ |
343 | APPNAME=$$target$(EXE_EXT) OBJECTS="$$target.o" \ | 351 | CC="$${CC}" APPNAME=$$target$(EXE_EXT) OBJECTS="$$target.o" \ |
352 | LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \ | ||
353 | link_app.$${shlib_target} | ||
354 | |||
355 | FIPS_BUILD_CMD=shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \ | ||
356 | shlib_target="$(SHLIB_TARGET)"; \ | ||
357 | fi; \ | ||
358 | LIBRARIES="$(LIBSSL) $(LIBCRYPTO) $(LIBKRB5)"; \ | ||
359 | if [ -z "$(SHARED_LIBS)" -a -n "$(FIPSCANLIB)" ] ; then \ | ||
360 | FIPSLD_CC="$(CC)"; CC=$(FIPSDIR)/bin/fipsld; export CC FIPSLD_CC; \ | ||
361 | fi; \ | ||
362 | $(MAKE) -f $(TOP)/Makefile.shared -e \ | ||
363 | CC="$${CC}" APPNAME=$$target$(EXE_EXT) OBJECTS="$$target.o" \ | ||
344 | LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \ | 364 | LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \ |
345 | link_app.$${shlib_target} | 365 | link_app.$${shlib_target} |
346 | 366 | ||
@@ -423,7 +443,7 @@ $(METHTEST)$(EXE_EXT): $(METHTEST).o $(DLIBCRYPTO) | |||
423 | @target=$(METHTEST); $(BUILD_CMD) | 443 | @target=$(METHTEST); $(BUILD_CMD) |
424 | 444 | ||
425 | $(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) | 445 | $(SSLTEST)$(EXE_EXT): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) |
426 | @target=$(SSLTEST); $(BUILD_CMD) | 446 | @target=$(SSLTEST); $(FIPS_BUILD_CMD) |
427 | 447 | ||
428 | $(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO) | 448 | $(ENGINETEST)$(EXE_EXT): $(ENGINETEST).o $(DLIBCRYPTO) |
429 | @target=$(ENGINETEST); $(BUILD_CMD) | 449 | @target=$(ENGINETEST); $(BUILD_CMD) |
@@ -446,6 +466,9 @@ $(JPAKETEST)$(EXE_EXT): $(JPAKETEST).o $(DLIBCRYPTO) | |||
446 | $(ASN1TEST)$(EXE_EXT): $(ASN1TEST).o $(DLIBCRYPTO) | 466 | $(ASN1TEST)$(EXE_EXT): $(ASN1TEST).o $(DLIBCRYPTO) |
447 | @target=$(ASN1TEST); $(BUILD_CMD) | 467 | @target=$(ASN1TEST); $(BUILD_CMD) |
448 | 468 | ||
469 | $(SRPTEST)$(EXE_EXT): $(SRPTEST).o $(DLIBCRYPTO) | ||
470 | @target=$(SRPTEST); $(BUILD_CMD) | ||
471 | |||
449 | #$(AESTEST).o: $(AESTEST).c | 472 | #$(AESTEST).o: $(AESTEST).c |
450 | # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c | 473 | # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c |
451 | 474 | ||
@@ -669,6 +692,13 @@ shatest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | |||
669 | shatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | 692 | shatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h |
670 | shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h | 693 | shatest.o: ../include/openssl/safestack.h ../include/openssl/sha.h |
671 | shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h shatest.c | 694 | shatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h shatest.c |
695 | srptest.o: ../include/openssl/bio.h ../include/openssl/bn.h | ||
696 | srptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h | ||
697 | srptest.o: ../include/openssl/err.h ../include/openssl/lhash.h | ||
698 | srptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | ||
699 | srptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h | ||
700 | srptest.o: ../include/openssl/safestack.h ../include/openssl/srp.h | ||
701 | srptest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h srptest.c | ||
672 | ssltest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h | 702 | ssltest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h |
673 | ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h | 703 | ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
674 | ssltest.o: ../include/openssl/comp.h ../include/openssl/conf.h | 704 | ssltest.o: ../include/openssl/comp.h ../include/openssl/conf.h |
@@ -685,7 +715,8 @@ ssltest.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | |||
685 | ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | 715 | ssltest.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h |
686 | ssltest.o: ../include/openssl/pqueue.h ../include/openssl/rand.h | 716 | ssltest.o: ../include/openssl/pqueue.h ../include/openssl/rand.h |
687 | ssltest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | 717 | ssltest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h |
688 | ssltest.o: ../include/openssl/sha.h ../include/openssl/ssl.h | 718 | ssltest.o: ../include/openssl/sha.h ../include/openssl/srp.h |
719 | ssltest.o: ../include/openssl/srtp.h ../include/openssl/ssl.h | ||
689 | ssltest.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h | 720 | ssltest.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h |
690 | ssltest.o: ../include/openssl/ssl3.h ../include/openssl/stack.h | 721 | ssltest.o: ../include/openssl/ssl3.h ../include/openssl/stack.h |
691 | ssltest.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h | 722 | ssltest.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h |