1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* defs.inc: Improved all_cipher_algos and all_hash_algos to work when

there are more than one line of algorithms.  From 1.4.
This commit is contained in:
David Shaw 2009-06-05 13:54:08 +00:00
parent e80d9387b2
commit 6f287d4e3f
2 changed files with 7 additions and 3 deletions

View file

@ -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