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

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