* defs.inc: Use new --list-config method to get cipher and digest
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 28 Nov 2007 15:15:37 +0000 (15:15 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 28 Nov 2007 15:15:37 +0000 (15:15 +0000)
names.

checks/ChangeLog
checks/defs.inc
checks/sigs-dsa.test

index ab3318b..a61cf10 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-28  David Shaw  <dshaw@jabberwocky.com>
+
+       * defs.inc: Use new --list-config method to get cipher and digest
+       names.
+
 2007-07-18  David Shaw  <dshaw@jabberwocky.com>
 
        * defs.inc (all_hash_algos): See "all_cipher_algos", below.
index 50fca94..ce05ff5 100755 (executable)
@@ -131,11 +131,11 @@ have_hash_algo () {
 }
 
 all_cipher_algos () {
-  ../g10/gpg --homedir . --version | grep "Cipher" | sed 's/^Cipher: //; s/,//g'
+  ../g10/gpg --homedir . --with-colons --list-config ciphername | sed 's/^cfg:ciphername://; s/;/ /g'
 }
 
 all_hash_algos () {
-  ../g10/gpg --homedir . --version | grep "Hash" | sed 's/^Hash: //; s/,//g'
+  ../g10/gpg --homedir . --with-colons --list-config digestname | sed 's/^cfg:digestname://; s/;/ /g'
 }
 
 set -e
index 2294cf5..cfdd521 100755 (executable)
@@ -19,4 +19,3 @@ for da in ripemd160 sha1; do
        break
     done
 done
-