2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-04 15:03:41 +01:00

refuse to permit --allciphers and --json together

This commit is contained in:
Richard Soderberg 2015-09-18 11:56:28 -07:00
parent 8f3341a165
commit 179cbe8db1

View File

@ -1387,6 +1387,11 @@ if [[ -n $CAPATH && -n $CACERTS ]]; then
exit 1
fi
if [[ -n $ALLCIPHERS && $OUTPUTFORMAT == "json" ]]; then
echo "--allciphers cannot produce JSON output, aborting." 1>&2
exit 1
fi
# echo parameters left: $@
if (( $# < 1 )); then