5 # Only attempt OpenSSL-specific tests when compiled with the library.
7 if grep '^#define HAVE_LIBCRYPTO 1$' ..
/config.h
>/dev
/null
11 if .
/TESTonce esp1
02-sunrise-sunset-esp.pcap esp1.out
'-E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
13 passed
=`expr $passed + 1`
16 failed
=`expr $failed + 1`
20 if .
/TESTonce esp2
08-sunrise-sunset-esp2.pcap esp2.out
'-E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x43434545464649494a4a4c4c4f4f51515252545457575840,0xabcdabcd@192.0.1.1 3des-cbc-hmac96:0x434545464649494a4a4c4c4f4f5151525254545757584043"'
22 passed
=`expr $passed + 1`
25 failed
=`expr $failed + 1`
29 if .
/TESTonce esp3
02-sunrise-sunset-esp.pcap esp1.out
'-E "3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
31 passed
=`expr $passed + 1`
34 failed
=`expr $failed + 1`
38 # Reading the secret(s) from a file does not work with Capsicum.
39 if grep '^#define HAVE_CAPSICUM 1$' ..
/config.h
>/dev
/null
41 FORMAT
=' %-35s: TEST SKIPPED (compiled w/Capsicum)\n'
44 printf "$FORMAT" espudp1
45 printf "$FORMAT" ikev2pI2
46 printf "$FORMAT" isakmp4
48 if .
/TESTonce esp4
08-sunrise-sunset-esp2.pcap esp2.out
'-E "file esp-secrets.txt"'
50 passed
=`expr $passed + 1`
53 failed
=`expr $failed + 1`
57 if .
/TESTonce esp5
08-sunrise-sunset-aes.pcap esp5.out
'-E "file esp-secrets.txt"'
59 passed
=`expr $passed + 1`
62 failed
=`expr $failed + 1`
66 if .
/TESTonce espudp1 espudp1.pcap espudp1.out
'-nnnn -E "file esp-secrets.txt"'
68 passed
=`expr $passed + 1`
71 failed
=`expr $failed + 1`
75 if .
/TESTonce ikev2pI2 ikev2pI2.pcap ikev2pI2.out
'-E "file ikev2pI2-secrets.txt" -v -v -v -v'
77 passed
=`expr $passed + 1`
80 failed
=`expr $failed + 1`
84 if .
/TESTonce isakmp4 isakmp4500.pcap isakmp4.out
'-E "file esp-secrets.txt"'
86 passed
=`expr $passed + 1`
89 failed
=`expr $failed + 1`
94 if .
/TESTonce bgp-as-path-oobr-ssl bgp-as-path-oobr.pcap bgp-as-path-oobr-ssl.out
'-vvv -e'
96 passed
=`expr $passed + 1`
99 failed
=`expr $failed + 1`
100 echo $failed >.failed
103 FORMAT
=' %-35s: TEST SKIPPED (compiled w/OpenSSL)\n'
104 printf "$FORMAT" bgp-as-path-oobr-nossl
106 FORMAT
=' %-35s: TEST SKIPPED (compiled w/o OpenSSL)\n'
107 printf "$FORMAT" esp1
108 printf "$FORMAT" esp2
109 printf "$FORMAT" esp3
110 printf "$FORMAT" esp4
111 printf "$FORMAT" esp5
112 printf "$FORMAT" espudp1
113 printf "$FORMAT" ikev2pI2
114 printf "$FORMAT" isakmp4
115 printf "$FORMAT" bgp-as-path-oobr-ssl
116 if .
/TESTonce bgp-as-path-oobr-nossl bgp-as-path-oobr.pcap bgp-as-path-oobr-nossl.out
'-vvv -e'
118 passed
=`expr $passed + 1`
119 echo $passed >.passed
121 failed
=`expr $failed + 1`
122 echo $failed >.failed