7 # Only attempt OpenSSL-specific tests when compiled with the library.
9 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 if .
/TESTonce bgp-aigp-oobr-ssl bgp-aigp-oobr.pcap bgp-aigp-oobr-ssl.out
'-vvv -e'
105 passed
=`expr $passed + 1`
106 echo $passed >.passed
108 failed
=`expr $failed + 1`
109 echo $failed >.failed
112 FORMAT
=' %-35s: TEST SKIPPED (compiled w/OpenSSL)\n'
113 printf "$FORMAT" bgp-as-path-oobr-nossl
114 printf "$FORMAT" bgp-aigp-oobr-nossl
116 FORMAT
=' %-35s: TEST SKIPPED (compiled w/o OpenSSL)\n'
117 printf "$FORMAT" esp1
118 printf "$FORMAT" esp2
119 printf "$FORMAT" esp3
120 printf "$FORMAT" esp4
121 printf "$FORMAT" esp5
122 printf "$FORMAT" espudp1
123 printf "$FORMAT" ikev2pI2
124 printf "$FORMAT" isakmp4
125 printf "$FORMAT" bgp-as-path-oobr-ssl
126 printf "$FORMAT" bgp-aigp-oobr-ssl
127 if .
/TESTonce bgp-as-path-oobr-nossl bgp-as-path-oobr.pcap bgp-as-path-oobr-nossl.out
'-vvv -e'
129 passed
=`expr $passed + 1`
130 echo $passed >.passed
132 failed
=`expr $failed + 1`
133 echo $failed >.failed
136 if .
/TESTonce bgp-aigp-oobr-nossl bgp-aigp-oobr.pcap bgp-aigp-oobr-nossl.out
'-vvv -e'
138 passed
=`expr $passed + 1`
139 echo $passed >.passed
141 failed
=`expr $failed + 1`
142 echo $failed >.failed