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:
parent
5f43f911bd
commit
a7999aa866
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user