8 INCLUDES= -I$(TOP) -I../include $(KRB5_INCLUDES)
11 OPENSSLDIR= /usr/local/ssl
12 INSTALLTOP= /usr/local/ssl
13 MAKEFILE= Makefile.ssl
14 MAKE= make -f $(MAKEFILE)
15 MAKEDEPPROG= makedepend
16 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
20 EX_LIBS= #-lnsl -lsocket
22 CFLAGS= $(INCLUDES) $(CFLAG)
24 GENERAL=Makefile.ssl maketests.com \
25 tests.com testenc.com tx509.com trsa.com tcrl.com tsid.com treq.com \
26 tpkcs7.com tpkcs7d.com tverify.com testgen.com testss.com testssl.com \
27 testca.com VMSca-response.1 VMSca-response.2
29 DLIBCRYPTO= ../libcrypto.a
31 LIBCRYPTO= -L.. -lcrypto
60 ENGINETEST= enginetest
65 EXE= $(BNTEST) $(ECTEST) $(ECDSATEST) $(ECDHTEST) $(IDEATEST) \
66 $(MD2TEST) $(MD4TEST) $(MD5TEST) $(HMACTEST) \
67 $(RC2TEST) $(RC4TEST) $(RC5TEST) \
68 $(DESTEST) $(SHATEST) $(SHA1TEST) $(MDC2TEST) $(RMDTEST) \
69 $(RANDTEST) $(DHTEST) $(ENGINETEST) \
70 $(BFTEST) $(CASTTEST) $(SSLTEST) $(EXPTEST) $(DSATEST) $(RSATEST) \
75 OBJ= $(BNTEST).o $(ECTEST).o $(ECDSATEST).o $(ECDHTEST).o $(IDEATEST).o \
76 $(MD2TEST).o $(MD4TEST).o $(MD5TEST).o \
78 $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \
79 $(DESTEST).o $(SHATEST).o $(SHA1TEST).o $(MDC2TEST).o $(RMDTEST).o \
80 $(RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \
81 $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(EXPTEST).o $(RSATEST).o \
83 SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
84 $(MD2TEST).c $(MD4TEST).c $(MD5TEST).c \
86 $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \
87 $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \
88 $(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \
89 $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c $(RSATEST).c \
95 ALL= $(GENERAL) $(SRC) $(HEADER)
98 (cd ..; $(MAKE) DIRS=$(DIR) TESTS=$(TESTS) all)
102 exe: $(EXE) dummytest
105 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
108 @@$(TOP)/util/point.sh Makefile.ssl Makefile
112 @$(TOP)/util/point.sh dummytest.c $@
121 tests: exe apps $(TESTS)
124 @(cd ..; $(MAKE) DIRS=apps all)
126 SET_SO_PATHS=LIBPATH="`cd ..; pwd`"; LD_LIBRARY_PATH="$$LIBPATH"; DYLD_LIBRARY_PATH="$$LIBPATH"; SHLIB_PATH="$$LIBPATH"; \
127 if [ "$(PLATFORM)" = "Cygwin" ]; then PATH="$${LIBPATH}:$$PATH"; fi; \
128 export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH
131 test_des test_idea test_sha test_md4 test_md5 test_hmac \
133 test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_aes \
134 test_rand test_bn test_ec test_ecdsa test_ecdh \
135 test_enc test_x509 test_rsa test_crl test_sid \
136 test_gen test_req test_pkcs7 test_verify test_dh test_dsa \
137 test_ss test_ca test_engine test_evp test_ssl
140 $(SET_SO_PATHS); ./$(EVPTEST) evptests.txt
143 $(SET_SO_PATHS); ./$(DESTEST)
146 $(SET_SO_PATHS); ./$(IDEATEST)
149 $(SET_SO_PATHS); ./$(SHATEST)
150 $(SET_SO_PATHS); ./$(SHA1TEST)
153 $(SET_SO_PATHS); ./$(MDC2TEST)
156 $(SET_SO_PATHS); ./$(MD5TEST)
159 $(SET_SO_PATHS); ./$(MD4TEST)
162 $(SET_SO_PATHS); ./$(HMACTEST)
165 $(SET_SO_PATHS); ./$(MD2TEST)
168 $(SET_SO_PATHS); ./$(RMDTEST)
171 $(SET_SO_PATHS); ./$(BFTEST)
174 $(SET_SO_PATHS); ./$(CASTTEST)
177 $(SET_SO_PATHS); ./$(RC2TEST)
180 $(SET_SO_PATHS); ./$(RC4TEST)
183 $(SET_SO_PATHS); ./$(RC5TEST)
186 $(SET_SO_PATHS); ./$(RANDTEST)
189 @$(SET_SO_PATHS); sh ./testenc
192 echo test normal x509v1 certificate
193 $(SET_SO_PATHS); sh ./tx509 2>/dev/null
194 echo test first x509v3 certificate
195 $(SET_SO_PATHS); sh ./tx509 v3-cert1.pem 2>/dev/null
196 echo test second x509v3 certificate
197 $(SET_SO_PATHS); sh ./tx509 v3-cert2.pem 2>/dev/null
200 @$(SET_SO_PATHS); sh ./trsa 2>/dev/null
201 $(SET_SO_PATHS); ./$(RSATEST)
204 @$(SET_SO_PATHS); sh ./tcrl 2>/dev/null
207 @$(SET_SO_PATHS); sh ./tsid 2>/dev/null
210 @$(SET_SO_PATHS); sh ./treq 2>/dev/null
211 @$(SET_SO_PATHS); sh ./treq testreq2.pem 2>/dev/null
214 @$(SET_SO_PATHS); sh ./tpkcs7 2>/dev/null
215 @$(SET_SO_PATHS); sh ./tpkcs7d 2>/dev/null
218 @echo starting big number library test, could take a while...
219 @$(SET_SO_PATHS); ./$(BNTEST) >tmp.bntest
220 @echo quit >>tmp.bntest
222 @<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"'
223 @echo 'test a^b%c implementations'
224 $(SET_SO_PATHS); ./$(EXPTEST)
227 @echo 'test elliptic curves'
228 $(SET_SO_PATHS); ./$(ECTEST)
232 $(SET_SO_PATHS); ./$(ECDSATEST)
236 $(SET_SO_PATHS); ./$(ECDHTEST)
239 @echo "The following command should have some OK's and some failures"
240 @echo "There are definitly a few expired certificates"
241 $(SET_SO_PATHS); ../apps/openssl verify -CApath ../certs ../certs/*.pem
244 @echo "Generate a set of DH parameters"
245 $(SET_SO_PATHS); ./$(DHTEST)
248 @echo "Generate a set of DSA parameters"
249 $(SET_SO_PATHS); ./$(DSATEST)
250 $(SET_SO_PATHS); ./$(DSATEST) -app2_1
253 @echo "Generate and verify a certificate request"
254 @$(SET_SO_PATHS); sh ./testgen
256 test_ss keyU.ss certU.ss certCA.ss: testss
257 @echo "Generate and certify a test certificate"
258 @$(SET_SO_PATHS); sh ./testss
261 @echo "Manipulate the ENGINE structures"
262 $(SET_SO_PATHS); ./$(ENGINETEST)
264 test_ssl: keyU.ss certU.ss certCA.ss
265 @echo "test SSL protocol"
266 @$(SET_SO_PATHS); sh ./testssl keyU.ss certU.ss certCA.ss
269 @$(SET_SO_PATHS); if ../apps/openssl no-rsa; then \
270 echo "skipping CA.sh test -- requires RSA"; \
272 echo "Generate and certify a test certificate via the 'ca' program"; \
276 test_aes: #$(AESTEST)
277 # @echo "test Rijndael"
278 # $(SET_SO_PATHS); ./$(AESTEST)
281 lint -DLINT $(INCLUDES) $(SRC)>fluff
284 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
287 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
288 mv -f Makefile.new $(MAKEFILE)
291 rm -f .rnd tmp.bntest tmp.bctest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss *.srl log
294 (cd ..; $(MAKE) DIRS=ssl all)
297 (cd ..; $(MAKE) DIRS=crypto all)
299 $(RSATEST): $(RSATEST).o $(DLIBCRYPTO)
300 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
301 $(CC) -o $(RSATEST) $(CFLAGS) $(RSATEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
303 $(CC) -o $(RSATEST) $(CFLAGS) $(RSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
306 $(BNTEST): $(BNTEST).o $(DLIBCRYPTO)
307 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
308 $(CC) -o $(BNTEST) $(CFLAGS) $(BNTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
310 $(CC) -o $(BNTEST) $(CFLAGS) $(BNTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
313 $(ECTEST): $(ECTEST).o $(DLIBCRYPTO)
314 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
315 $(CC) -o $(ECTEST) $(CFLAGS) $(ECTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
317 $(CC) -o $(ECTEST) $(CFLAGS) $(ECTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
320 $(EXPTEST): $(EXPTEST).o $(DLIBCRYPTO)
321 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
322 $(CC) -o $(EXPTEST) $(CFLAGS) $(EXPTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
324 $(CC) -o $(EXPTEST) $(CFLAGS) $(EXPTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
327 $(IDEATEST): $(IDEATEST).o $(DLIBCRYPTO)
328 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
329 $(CC) -o $(IDEATEST) $(CFLAGS) $(IDEATEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
331 $(CC) -o $(IDEATEST) $(CFLAGS) $(IDEATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
334 $(MD2TEST): $(MD2TEST).o $(DLIBCRYPTO)
335 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
336 $(CC) -o $(MD2TEST) $(CFLAGS) $(MD2TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
338 $(CC) -o $(MD2TEST) $(CFLAGS) $(MD2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
341 $(SHATEST): $(SHATEST).o $(DLIBCRYPTO)
342 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
343 $(CC) -o $(SHATEST) $(CFLAGS) $(SHATEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
345 $(CC) -o $(SHATEST) $(CFLAGS) $(SHATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
348 $(SHA1TEST): $(SHA1TEST).o $(DLIBCRYPTO)
349 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
350 $(CC) -o $(SHA1TEST) $(CFLAGS) $(SHA1TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
352 $(CC) -o $(SHA1TEST) $(CFLAGS) $(SHA1TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
355 $(RMDTEST): $(RMDTEST).o $(DLIBCRYPTO)
356 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
357 $(CC) -o $(RMDTEST) $(CFLAGS) $(RMDTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
359 $(CC) -o $(RMDTEST) $(CFLAGS) $(RMDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
362 $(MDC2TEST): $(MDC2TEST).o $(DLIBCRYPTO)
363 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
364 $(CC) -o $(MDC2TEST) $(CFLAGS) $(MDC2TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
366 $(CC) -o $(MDC2TEST) $(CFLAGS) $(MDC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
369 $(MD4TEST): $(MD4TEST).o $(DLIBCRYPTO)
370 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
371 $(CC) -o $(MD4TEST) $(CFLAGS) $(MD4TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
373 $(CC) -o $(MD4TEST) $(CFLAGS) $(MD4TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
376 $(MD5TEST): $(MD5TEST).o $(DLIBCRYPTO)
377 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
378 $(CC) -o $(MD5TEST) $(CFLAGS) $(MD5TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
380 $(CC) -o $(MD5TEST) $(CFLAGS) $(MD5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
383 $(HMACTEST): $(HMACTEST).o $(DLIBCRYPTO)
384 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
385 $(CC) -o $(HMACTEST) $(CFLAGS) $(HMACTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
387 $(CC) -o $(HMACTEST) $(CFLAGS) $(HMACTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
390 $(RC2TEST): $(RC2TEST).o $(DLIBCRYPTO)
391 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
392 $(CC) -o $(RC2TEST) $(CFLAGS) $(RC2TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
394 $(CC) -o $(RC2TEST) $(CFLAGS) $(RC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
397 $(BFTEST): $(BFTEST).o $(DLIBCRYPTO)
398 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
399 $(CC) -o $(BFTEST) $(CFLAGS) $(BFTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
401 $(CC) -o $(BFTEST) $(CFLAGS) $(BFTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
404 $(CASTTEST): $(CASTTEST).o $(DLIBCRYPTO)
405 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
406 $(CC) -o $(CASTTEST) $(CFLAGS) $(CASTTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
408 $(CC) -o $(CASTTEST) $(CFLAGS) $(CASTTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
411 $(RC4TEST): $(RC4TEST).o $(DLIBCRYPTO)
412 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
413 $(CC) -o $(RC4TEST) $(CFLAGS) $(RC4TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
415 $(CC) -o $(RC4TEST) $(CFLAGS) $(RC4TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
418 $(RC5TEST): $(RC5TEST).o $(DLIBCRYPTO)
419 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
420 $(CC) -o $(RC5TEST) $(CFLAGS) $(RC5TEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
422 $(CC) -o $(RC5TEST) $(CFLAGS) $(RC5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
425 $(DESTEST): $(DESTEST).o $(DLIBCRYPTO)
426 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
427 $(CC) -o $(DESTEST) $(CFLAGS) $(DESTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
429 $(CC) -o $(DESTEST) $(CFLAGS) $(DESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
432 $(RANDTEST): $(RANDTEST).o $(DLIBCRYPTO)
433 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
434 $(CC) -o $(RANDTEST) $(CFLAGS) $(RANDTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
436 $(CC) -o $(RANDTEST) $(CFLAGS) $(RANDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
439 $(DHTEST): $(DHTEST).o $(DLIBCRYPTO)
440 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
441 $(CC) -o $(DHTEST) $(CFLAGS) $(DHTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
443 $(CC) -o $(DHTEST) $(CFLAGS) $(DHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
446 $(DSATEST): $(DSATEST).o $(DLIBCRYPTO)
447 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
448 $(CC) -o $(DSATEST) $(CFLAGS) $(DSATEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
450 $(CC) -o $(DSATEST) $(CFLAGS) $(DSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
453 $(METHTEST): $(METHTEST).o $(DLIBCRYPTO)
454 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
455 $(CC) -o $(METHTEST) $(CFLAGS) $(METHTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
457 $(CC) -o $(METHTEST) $(CFLAGS) $(METHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
460 $(SSLTEST): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO)
461 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
462 $(CC) -o $(SSLTEST) $(CFLAGS) $(SSLTEST).o $(PEX_LIBS) $(DLIBSSL) $(LIBKRB5) $(DLIBCRYPTO) $(EX_LIBS) ; \
464 $(CC) -o $(SSLTEST) $(CFLAGS) $(SSLTEST).o $(PEX_LIBS) $(LIBSSL) $(LIBKRB5) $(LIBCRYPTO) $(EX_LIBS) ; \
467 $(ENGINETEST): $(ENGINETEST).o $(DLIBCRYPTO)
468 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
469 $(CC) -o $(ENGINETEST) $(CFLAGS) $(ENGINETEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
471 $(CC) -o $(ENGINETEST) $(CFLAGS) $(ENGINETEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
474 $(EVPTEST): $(EVPTEST).o $(DLIBCRYPTO)
475 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
476 $(CC) -o $(EVPTEST) $(CFLAGS) $(EVPTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
478 $(CC) -o $(EVPTEST) $(CFLAGS) $(EVPTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
481 $(ECDSATEST): $(ECDSATEST).o $(DLIBCRYPTO)
482 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
483 $(CC) -o $(ECDSATEST) $(CFLAGS) $(ECDSATEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
485 $(CC) -o $(ECDSATEST) $(CFLAGS) $(ECDSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
488 $(ECDHTEST): $(ECDHTEST).o $(DLIBCRYPTO)
489 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
490 $(CC) -o $(ECDHTEST) $(CFLAGS) $(ECDHTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
492 $(CC) -o $(ECDHTEST) $(CFLAGS) $(ECDHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
495 #$(AESTEST).o: $(AESTEST).c
496 # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c
498 #$(AESTEST): $(AESTEST).o $(DLIBCRYPTO)
499 # if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
500 # $(CC) -o $(AESTEST) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
502 # $(CC) -o $(AESTEST) $(CFLAGS) $(AESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
505 dummytest: dummytest.o $(DLIBCRYPTO)
506 if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
507 $(CC) -o dummytest $(CFLAGS) dummytest.o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
509 $(CC) -o dummytest $(CFLAGS) dummytest.o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
512 # DO NOT DELETE THIS LINE -- make depend depends on it.
514 bftest.o: ../e_os.h ../include/openssl/blowfish.h ../include/openssl/e_os2.h
515 bftest.o: ../include/openssl/opensslconf.h bftest.c
516 bntest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
517 bntest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
518 bntest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
519 bntest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
520 bntest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
521 bntest.o: ../include/openssl/ecdsa.h ../include/openssl/err.h
522 bntest.o: ../include/openssl/evp.h ../include/openssl/lhash.h
523 bntest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
524 bntest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
525 bntest.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
526 bntest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
527 bntest.o: ../include/openssl/safestack.h ../include/openssl/sha.h
528 bntest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
529 bntest.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h bntest.c
530 casttest.o: ../e_os.h ../include/openssl/cast.h ../include/openssl/e_os2.h
531 casttest.o: ../include/openssl/opensslconf.h casttest.c
532 destest.o: ../include/openssl/crypto.h ../include/openssl/des.h
533 destest.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h
534 destest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
535 destest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
536 destest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
537 destest.o: ../include/openssl/ui_compat.h destest.c
538 dhtest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
539 dhtest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
540 dhtest.o: ../include/openssl/e_os2.h ../include/openssl/err.h
541 dhtest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
542 dhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
543 dhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
544 dhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h dhtest.c
545 dsatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
546 dsatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
547 dsatest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
548 dsatest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
549 dsatest.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
550 dsatest.o: ../include/openssl/engine.h ../include/openssl/err.h
551 dsatest.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
552 dsatest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
553 dsatest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
554 dsatest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
555 dsatest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h dsatest.c
556 ecdhtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
557 ecdhtest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
558 ecdhtest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
559 ecdhtest.o: ../include/openssl/ecdh.h ../include/openssl/err.h
560 ecdhtest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
561 ecdhtest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
562 ecdhtest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
563 ecdhtest.o: ../include/openssl/rand.h ../include/openssl/safestack.h
564 ecdhtest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h ecdhtest.c
565 ecdsatest.o: ../include/openssl/asn1.h ../include/openssl/bio.h
566 ecdsatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
567 ecdsatest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
568 ecdsatest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
569 ecdsatest.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
570 ecdsatest.o: ../include/openssl/engine.h ../include/openssl/err.h
571 ecdsatest.o: ../include/openssl/evp.h ../include/openssl/lhash.h
572 ecdsatest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
573 ecdsatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
574 ecdsatest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
575 ecdsatest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
576 ecdsatest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
577 ecdsatest.o: ../include/openssl/ui.h ecdsatest.c
578 ectest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
579 ectest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
580 ectest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
581 ectest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
582 ectest.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
583 ectest.o: ../include/openssl/engine.h ../include/openssl/err.h
584 ectest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
585 ectest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
586 ectest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
587 ectest.o: ../include/openssl/rand.h ../include/openssl/rsa.h
588 ectest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
589 ectest.o: ../include/openssl/symhacks.h ../include/openssl/ui.h ectest.c
590 enginetest.o: ../include/openssl/asn1.h ../include/openssl/bio.h
591 enginetest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
592 enginetest.o: ../include/openssl/crypto.h ../include/openssl/dh.h
593 enginetest.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
594 enginetest.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
595 enginetest.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
596 enginetest.o: ../include/openssl/err.h ../include/openssl/lhash.h
597 enginetest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
598 enginetest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
599 enginetest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
600 enginetest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
601 enginetest.o: ../include/openssl/ui.h enginetest.c
602 evp_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
603 evp_test.o: ../include/openssl/bn.h ../include/openssl/conf.h
604 evp_test.o: ../include/openssl/crypto.h ../include/openssl/dh.h
605 evp_test.o: ../include/openssl/dsa.h ../include/openssl/e_os2.h
606 evp_test.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
607 evp_test.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
608 evp_test.o: ../include/openssl/err.h ../include/openssl/evp.h
609 evp_test.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
610 evp_test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
611 evp_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
612 evp_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h
613 evp_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
614 evp_test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h evp_test.c
615 exptest.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/bn.h
616 exptest.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
617 exptest.o: ../include/openssl/err.h ../include/openssl/lhash.h
618 exptest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
619 exptest.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
620 exptest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
621 exptest.o: ../include/openssl/symhacks.h exptest.c
622 hmactest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
623 hmactest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
624 hmactest.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
625 hmactest.o: ../include/openssl/hmac.h ../include/openssl/md5.h
626 hmactest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
627 hmactest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
628 hmactest.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
629 hmactest.o: ../include/openssl/stack.h ../include/openssl/symhacks.h hmactest.c
630 ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h
631 ideatest.o: ../include/openssl/opensslconf.h ideatest.c
632 md2test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
633 md2test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
634 md2test.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
635 md2test.o: ../include/openssl/md2.h ../include/openssl/obj_mac.h
636 md2test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
637 md2test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
638 md2test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
639 md2test.o: ../include/openssl/symhacks.h md2test.c
640 md4test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
641 md4test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
642 md4test.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
643 md4test.o: ../include/openssl/md4.h ../include/openssl/obj_mac.h
644 md4test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
645 md4test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
646 md4test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
647 md4test.o: ../include/openssl/symhacks.h md4test.c
648 md5test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
649 md5test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
650 md5test.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
651 md5test.o: ../include/openssl/md5.h ../include/openssl/obj_mac.h
652 md5test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
653 md5test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
654 md5test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
655 md5test.o: ../include/openssl/symhacks.h md5test.c
656 mdc2test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
657 mdc2test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
658 mdc2test.o: ../include/openssl/des.h ../include/openssl/des_old.h
659 mdc2test.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
660 mdc2test.o: ../include/openssl/mdc2.h ../include/openssl/obj_mac.h
661 mdc2test.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
662 mdc2test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
663 mdc2test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
664 mdc2test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
665 mdc2test.o: ../include/openssl/ui_compat.h mdc2test.c
666 randtest.o: ../e_os.h ../include/openssl/e_os2.h
667 randtest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h
668 randtest.o: ../include/openssl/rand.h randtest.c
669 rc2test.o: ../e_os.h ../include/openssl/e_os2.h
670 rc2test.o: ../include/openssl/opensslconf.h ../include/openssl/rc2.h rc2test.c
671 rc4test.o: ../e_os.h ../include/openssl/e_os2.h
672 rc4test.o: ../include/openssl/opensslconf.h ../include/openssl/rc4.h rc4test.c
673 rc5test.o: ../e_os.h ../include/openssl/e_os2.h
674 rc5test.o: ../include/openssl/opensslconf.h ../include/openssl/rc5.h rc5test.c
675 rmdtest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
676 rmdtest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
677 rmdtest.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
678 rmdtest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
679 rmdtest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
680 rmdtest.o: ../include/openssl/ossl_typ.h ../include/openssl/ripemd.h
681 rmdtest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
682 rmdtest.o: ../include/openssl/symhacks.h rmdtest.c
683 rsa_test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
684 rsa_test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
685 rsa_test.o: ../include/openssl/dh.h ../include/openssl/dsa.h
686 rsa_test.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
687 rsa_test.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
688 rsa_test.o: ../include/openssl/engine.h ../include/openssl/err.h
689 rsa_test.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
690 rsa_test.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
691 rsa_test.o: ../include/openssl/rand.h ../include/openssl/rsa.h
692 rsa_test.o: ../include/openssl/safestack.h ../include/openssl/stack.h
693 rsa_test.o: ../include/openssl/symhacks.h ../include/openssl/ui.h rsa_test.c
694 sha1test.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
695 sha1test.o: ../include/openssl/bn.h ../include/openssl/crypto.h
696 sha1test.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
697 sha1test.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
698 sha1test.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
699 sha1test.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
700 sha1test.o: ../include/openssl/sha.h ../include/openssl/stack.h
701 sha1test.o: ../include/openssl/symhacks.h sha1test.c
702 shatest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
703 shatest.o: ../include/openssl/bn.h ../include/openssl/crypto.h
704 shatest.o: ../include/openssl/e_os2.h ../include/openssl/evp.h
705 shatest.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
706 shatest.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
707 shatest.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
708 shatest.o: ../include/openssl/sha.h ../include/openssl/stack.h
709 shatest.o: ../include/openssl/symhacks.h shatest.c
710 ssltest.o: ../e_os.h ../include/openssl/asn1.h ../include/openssl/bio.h
711 ssltest.o: ../include/openssl/bn.h ../include/openssl/buffer.h
712 ssltest.o: ../include/openssl/comp.h ../include/openssl/crypto.h
713 ssltest.o: ../include/openssl/dh.h ../include/openssl/dsa.h
714 ssltest.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
715 ssltest.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
716 ssltest.o: ../include/openssl/engine.h ../include/openssl/err.h
717 ssltest.o: ../include/openssl/evp.h ../include/openssl/kssl.h
718 ssltest.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
719 ssltest.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
720 ssltest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
721 ssltest.o: ../include/openssl/pem.h ../include/openssl/pem2.h
722 ssltest.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
723 ssltest.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
724 ssltest.o: ../include/openssl/sha.h ../include/openssl/ssl.h
725 ssltest.o: ../include/openssl/ssl2.h ../include/openssl/ssl23.h
726 ssltest.o: ../include/openssl/ssl3.h ../include/openssl/stack.h
727 ssltest.o: ../include/openssl/symhacks.h ../include/openssl/tls1.h
728 ssltest.o: ../include/openssl/ui.h ../include/openssl/x509.h
729 ssltest.o: ../include/openssl/x509_vfy.h ssltest.c