Merge pull request #644 from dcooper16/fix643

Fix issue #643
This commit is contained in:
Dirk Wetter 2017-02-21 22:46:34 +01:00 committed by GitHub
commit 6457775b5f
1 changed files with 1 additions and 1 deletions

View File

@ -10218,7 +10218,7 @@ run_logjam() {
# now the final test for common primes # now the final test for common primes
if [[ -n "$key_bitstring" ]]; then if [[ -n "$key_bitstring" ]]; then
dh_p="$($OPENSSL pkey -pubin -text -noout <<< "$key_bitstring" | awk '/prime:/,/generator:/' | tail -n +2 | head -n -1)" dh_p="$($OPENSSL pkey -pubin -text -noout <<< "$key_bitstring" | awk '/prime:/,/generator:/' | egrep -v "prime|generator")"
dh_p="$(strip_spaces "$(colon_to_spaces "$(newline_to_spaces "$dh_p")")")" dh_p="$(strip_spaces "$(colon_to_spaces "$(newline_to_spaces "$dh_p")")")"
[[ "${dh_p:0:2}" == "00" ]] && dh_p="${dh_p:2}" [[ "${dh_p:0:2}" == "00" ]] && dh_p="${dh_p:2}"
len_dh_p="$((4*${#dh_p}))" len_dh_p="$((4*${#dh_p}))"