LEFT | RIGHT |
1 #! /bin/bash | 1 #! /bin/bash |
2 # | 2 # |
3 # This Source Code Form is subject to the terms of the Mozilla Public | 3 # This Source Code Form is subject to the terms of the Mozilla Public |
4 # License, v. 2.0. If a copy of the MPL was not distributed with this | 4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 | 6 |
7 ######################################################################## | 7 ######################################################################## |
8 # | 8 # |
9 # mozilla/security/nss/tests/ssl/ssl.sh | 9 # mozilla/security/nss/tests/ssl/ssl.sh |
10 # | 10 # |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 fileout=0 #FIXME, looks like all.sh tried to turn this on but actually didn't | 79 fileout=0 #FIXME, looks like all.sh tried to turn this on but actually didn't |
80 #fileout=1 | 80 #fileout=1 |
81 #verbose="-v" #FIXME - see where this is usefull | 81 #verbose="-v" #FIXME - see where this is usefull |
82 | 82 |
83 USER_NICKNAME=TestUser | 83 USER_NICKNAME=TestUser |
84 NORM_EXT="" | 84 NORM_EXT="" |
85 | 85 |
86 if [ -z "$NSS_DISABLE_ECC" ] ; then | 86 if [ -z "$NSS_DISABLE_ECC" ] ; then |
87 ECC_STRING=" - with ECC" | 87 ECC_STRING=" - with ECC" |
| 88 # List of cipher suites to test, including ECC cipher suites. |
| 89 CIPHER_SUITES="-c ABCDEF:C001:C002:C003:C004:C005:C006:C007:C008:C009:C00A
:C00B:C00C:C00D:C00E:C00F:C010:C011:C012:C013:C014:C023:C027:C02B:C02F:CCA8:CCA9
:CCAA:0016:0032:0033:0038:0039:003B:003C:003D:0040:0041:0067:006A:006B:0084:009C
:009E:00A2cdefgijklmnvyz" |
88 else | 90 else |
89 ECC_STRING="" | 91 ECC_STRING="" |
90 fi | 92 # List of cipher suites to test, excluding ECC cipher suites. |
91 | 93 CIPHER_SUITES="-c ABCDEF:0016:0032:0033:0038:0039:003B:003C:003D:0040:0041
:0067:006A:006B:0084:009C:009E:00A2:CCAAcdefgijklmnvyz" |
92 CSHORT="-c ABCDEF:0016:0032:0033:0038:0039:003B:003C:003D:0040:0041:0067:006A:
006B:0084:009C:009E:00A2:CCAAcdefgijklmnvyz" | 94 fi |
93 CLONG="-c ABCDEF:C001:C002:C003:C004:C005:C006:C007:C008:C009:C00A:C00B:C00C:C
00D:C00E:C00F:C010:C011:C012:C013:C014:C023:C027:C02B:C02F:CCA8:CCA9:CCAA:0016:0
032:0033:0038:0039:003B:003C:003D:0040:0041:0067:006A:006B:0084:009C:009E:00A2cd
efgijklmnvyz" | 95 |
94 | 96 |
95 if [ "${OS_ARCH}" != "WINNT" ]; then | 97 if [ "${OS_ARCH}" != "WINNT" ]; then |
96 ulimit -n 1000 # make sure we have enough file descriptors | 98 ulimit -n 1000 # make sure we have enough file descriptors |
97 fi | 99 fi |
98 | 100 |
99 cd ${CLIENTDIR} | 101 cd ${CLIENTDIR} |
100 } | 102 } |
101 | 103 |
102 ########################### is_selfserv_alive ########################## | 104 ########################### is_selfserv_alive ########################## |
103 # local shell function to exit with a fatal error if selfserver is not | 105 # local shell function to exit with a fatal error if selfserver is not |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 } | 255 } |
254 | 256 |
255 ############################## ssl_cov ################################# | 257 ############################## ssl_cov ################################# |
256 # local shell function to perform SSL Cipher Coverage tests | 258 # local shell function to perform SSL Cipher Coverage tests |
257 ######################################################################## | 259 ######################################################################## |
258 ssl_cov() | 260 ssl_cov() |
259 { | 261 { |
260 html_head "SSL Cipher Coverage $NORM_EXT - server $SERVER_MODE/client $CLIENT_
MODE $ECC_STRING" | 262 html_head "SSL Cipher Coverage $NORM_EXT - server $SERVER_MODE/client $CLIENT_
MODE $ECC_STRING" |
261 | 263 |
262 testname="" | 264 testname="" |
263 if [ -z "$NSS_DISABLE_ECC" ] ; then | 265 sparam="$CIPHER_SUITES" |
264 sparam="$CLONG" | |
265 else | |
266 sparam="$CSHORT" | |
267 fi | |
268 | 266 |
269 mixed=0 | 267 mixed=0 |
270 start_selfserv # Launch the server | 268 start_selfserv # Launch the server |
271 | 269 |
272 VMIN="ssl2" | 270 VMIN="ssl2" |
273 VMAX="tls1.1" | 271 VMAX="tls1.1" |
274 ··············· | 272 ··············· |
275 exec < ${SSLCOV} | 273 exec < ${SSLCOV} |
276 while read ectype testmax param testname | 274 while read ectype testmax param testname |
277 do | 275 do |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 } | 722 } |
725 | 723 |
726 ############################## ssl_cov ################################# | 724 ############################## ssl_cov ################################# |
727 # local shell function to perform SSL Policy tests | 725 # local shell function to perform SSL Policy tests |
728 ######################################################################## | 726 ######################################################################## |
729 ssl_policy() | 727 ssl_policy() |
730 { | 728 { |
731 html_head "SSL POLICY $NORM_EXT - server $SERVER_MODE/client $CLIENT_MODE $ECC
_STRING" | 729 html_head "SSL POLICY $NORM_EXT - server $SERVER_MODE/client $CLIENT_MODE $ECC
_STRING" |
732 | 730 |
733 testname="" | 731 testname="" |
734 if [ -z "$NSS_DISABLE_ECC" ] ; then | 732 sparam="$CIPHER_SUITES" |
735 sparam="$CLONG" | |
736 else | |
737 sparam="$CSHORT" | |
738 fi | |
739 | 733 |
740 if [ ! -f "${P_R_CLIENTDIR}/pkcs11.txt" ] ; then | 734 if [ ! -f "${P_R_CLIENTDIR}/pkcs11.txt" ] ; then |
741 return; | 735 return; |
742 fi | 736 fi |
743 | 737 |
744 echo "Saving pkcs11.txt" | 738 echo "Saving pkcs11.txt" |
745 cp ${P_R_CLIENTDIR}/pkcs11.txt ${P_R_CLIENTDIR}/pkcs11.txt.sav | 739 cp ${P_R_CLIENTDIR}/pkcs11.txt ${P_R_CLIENTDIR}/pkcs11.txt.sav |
746 | 740 |
747 mixed=0 | 741 mixed=0 |
748 start_selfserv # Launch the server | 742 start_selfserv # Launch the server |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 esac | 1273 esac |
1280 done | 1274 done |
1281 } | 1275 } |
1282 | 1276 |
1283 ################################# main ################################# | 1277 ################################# main ################################# |
1284 | 1278 |
1285 ssl_init | 1279 ssl_init |
1286 ssl_run_tests | 1280 ssl_run_tests |
1287 ssl_cleanup | 1281 ssl_cleanup |
1288 | 1282 |
LEFT | RIGHT |