From 61b16a078abd151296bfe1379a7e0f4198358fc3 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 18 Jan 2017 16:38:09 +0100 Subject: [PATCH] - file etc/common-primes was not edited correctly! --- testssl.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 38f39f46..64a35133 100755 --- a/testssl.sh +++ b/testssl.sh @@ -9619,7 +9619,8 @@ run_logjam() { [[ "${dh_p:0:2}" == "00" ]] && dh_p="${dh_p:2}" debugme outln "dh_p: $dh_p" echo "$dh_p" > $TEMPDIR/dh_p.txt - common_primes_test $dh_p "$spaces" +# attention: file etc/common-primes.txt is not correct! + # common_primes_test $dh_p "$spaces" else out " no DH key detected" fileout "LOGJAM_common primes" "OK" "no DH key detected" @@ -9643,7 +9644,7 @@ common_primes_test() { fileout "LOGJAM_common primes" "WARN" "couldn't read common primes file $common_primes_file" return 1 else - lineno_matched=$(grep -n "$dh_p" "$common_primes_file" 2>/dev/null) + lineno_matched=$(grep -ni "$dh_p" "$common_primes_file" 2>/dev/null) if [[ "$lineno_matched" -ne 0 ]]; then # get comment comment="$(awk "NR == $lineno_matched-1" "$common_primes_file" | awk -F'"' '{ print $2 }')"