diff options
Diffstat (limited to 'tests/openpgp/defs.inc')
| -rwxr-xr-x | tests/openpgp/defs.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/openpgp/defs.inc b/tests/openpgp/defs.inc index b33d9ebf8..2a7683eb6 100755 --- a/tests/openpgp/defs.inc +++ b/tests/openpgp/defs.inc @@ -148,14 +148,13 @@ have_hash_algo () { } all_cipher_algos () { - ../../g10/gpg2 --homedir . --version | grep "Cipher" | sed 's/^Cipher: //; s/,//g' + ../../g10/gpg2 --homedir . --with-colons --list-config ciphername | sed 's/^cfg:ciphername://; s/;/ /g' } all_hash_algos () { - ../../g10/gpg2 --homedir . --version | grep "Hash" | sed 's/^Hash: //; s/,//g' + ../../g10/gpg2 --homedir . --with-colons --list-config digestname | sed 's/^cfg:digestname://; s/;/ /g' } - set -e pgmname=`basename $0` #trap cleanup SIGHUP SIGINT SIGQUIT |
