cipherscan - capture whole Signature Algorithm line

the GOST certificates have a signature algorithm name with spaces
This commit is contained in:
Hubert Kario 2015-05-29 20:34:48 +02:00
parent d151705218
commit 8ea6b57f9d
1 changed files with 6 additions and 1 deletions

View File

@ -311,7 +311,12 @@ parse_openssl_output() {
while read data; do
if [[ $data =~ Signature\ Algorithm ]]; then
local match=($data)
current_sigalg="${match[2]}"
unset match[0]
unset match[1]
local old_IFS="$IFS"
IFS="_"
current_sigalg="${match[*]}"
IFS="$old_IFS"
fi
done <<<"$ossl_out"
fi