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
1 changed files with 4 additions and 0 deletions

View File

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