Fix sub_cipherlists()
This commit fixes a bug in sub_cipherlists() when using sockets to test whether a server supports a set of ciphers with SSLv2. Code that is supposed to extract the list of SSLv2 ciphers to test for is incorrectly reading from the list of non-SSLv2 ciphers.
This commit is contained in:
parent
7e7458bff0
commit
6b7836d350
|
@ -5889,7 +5889,7 @@ sub_cipherlists() {
|
||||||
elif [[ -n "$7" ]]; then
|
elif [[ -n "$7" ]]; then
|
||||||
sslv2_sockets "$7" "true"
|
sslv2_sockets "$7" "true"
|
||||||
if [[ $? -eq 3 ]] && [[ "$V2_HELLO_CIPHERSPEC_LENGTH" -ne 0 ]]; then
|
if [[ $? -eq 3 ]] && [[ "$V2_HELLO_CIPHERSPEC_LENGTH" -ne 0 ]]; then
|
||||||
sslv2_cipherlist="$(strip_spaces "${6//,/}")"
|
sslv2_cipherlist="$(strip_spaces "${7//,/}")"
|
||||||
len=${#sslv2_cipherlist}
|
len=${#sslv2_cipherlist}
|
||||||
detected_ssl2_ciphers="$(grep "Supported cipher: " "$TEMPDIR/$NODEIP.parse_sslv2_serverhello.txt")"
|
detected_ssl2_ciphers="$(grep "Supported cipher: " "$TEMPDIR/$NODEIP.parse_sslv2_serverhello.txt")"
|
||||||
for (( i=0; i<len; i+=6 )); do
|
for (( i=0; i<len; i+=6 )); do
|
||||||
|
|
Loading…
Reference in New Issue