2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 06:13:42 +01:00

add handling of no ciphers found

This commit is contained in:
Richard Soderberg 2015-08-31 14:31:05 -07:00
parent 5f43f911bd
commit a7999aa866

View File

@ -631,6 +631,10 @@ display_results_in_terminal() {
local curvesordering local curvesordering
local different=False local different=False
echo "Target: $TARGET"; echo echo "Target: $TARGET"; echo
if [[ ${#cipherspref[*]} -lt 1 ]]; then
echo "No ciphers detected! Aborting."
exit 1
fi
for cipher in "${cipherspref[@]}"; do for cipher in "${cipherspref[@]}"; do
# get first in array # get first in array
pciph=($cipher) pciph=($cipher)