2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-26 04:33:42 +01:00

revise whitespace layout of cipher, curve arrays to improve future diffs

This commit is contained in:
Richard Soderberg 2015-09-02 21:47:13 -07:00
parent 9e563782e2
commit 10057f93dc

View File

@ -65,7 +65,8 @@ fi
CIPHERSUITE="ALL:COMPLEMENTOFALL:+aRSA"
# some servers are intolerant to large client hello, try a shorter list of
# ciphers with them
SHORTCIPHERSUITE=('ECDHE-ECDSA-AES128-GCM-SHA256'
SHORTCIPHERSUITE=(
'ECDHE-ECDSA-AES128-GCM-SHA256'
'ECDHE-RSA-AES128-GCM-SHA256'
'ECDHE-RSA-AES256-GCM-SHA384'
'ECDHE-ECDSA-AES256-SHA'
@ -88,7 +89,8 @@ SHORTCIPHERSUITE=('ECDHE-ECDSA-AES128-GCM-SHA256'
'CAMELLIA256-SHA'
'DES-CBC3-SHA'
'RC4-SHA'
'RC4-MD5')
'RC4-MD5'
)
# as some servers are intolerant to large client hello's (or ones that have
# RC4 ciphers below position 64), use the following for cipher testing in case
# of problems
@ -126,7 +128,7 @@ FALLBACKCIPHERSUITE=(
'EXP-DES-CBC-SHA'
'EXP-RC2-CBC-MD5'
'EXP-RC4-MD5'
)
)
DEBUG=0
VERBOSE=0
DELAY=0
@ -205,7 +207,8 @@ debug(){
}
# obtain an array of curves supported by openssl
CURVES=(sect163k1 # K-163
CURVES=(
sect163k1 # K-163
sect163r1
sect163r2 # B-163
sect193r1
@ -232,11 +235,13 @@ CURVES=(sect163k1 # K-163
secp521r1 # P-521
brainpoolP256r1
brainpoolP384r1
brainpoolP512r1)
brainpoolP512r1
)
# many curves have alternative names, this array provides a mapping to find the IANA
# name of a curve using its alias
CURVES_MAP=("sect163k1 K-163"
CURVES_MAP=(
"sect163k1 K-163"
"sect163r2 B-163"
"sect233k1 K-233"
"sect233r1 B-233"
@ -250,7 +255,8 @@ CURVES_MAP=("sect163k1 K-163"
"secp224r1 P-224"
"prime256v1 P-256 secp256r1"
"secp384r1 P-384"
"secp521r1 P-521")
"secp521r1 P-521"
)
get_curve_name() {
local identifier=$1