mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-04 23:13:41 +01:00
add handling of no ciphers found
This commit is contained in:
parent
5f43f911bd
commit
a7999aa866
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user