From 179cbe8db1c6cfa9c40b6d597200c14c83f86a68 Mon Sep 17 00:00:00 2001 From: Richard Soderberg Date: Fri, 18 Sep 2015 11:56:28 -0700 Subject: [PATCH] refuse to permit --allciphers and --json together --- cipherscan | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cipherscan b/cipherscan index 3e4ee19..4a784d2 100755 --- a/cipherscan +++ b/cipherscan @@ -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