diff options
Diffstat (limited to 'checks/armor.test')
-rwxr-xr-x | checks/armor.test | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/checks/armor.test b/checks/armor.test index 80256a029..9fb92925b 100755 --- a/checks/armor.test +++ b/checks/armor.test @@ -739,16 +739,20 @@ wg7Md81a5RI3F2FG8747t9gX # armor filter gpg swalled the CRC line and passed the '-----END...' # line on to the decryption layer. -i=alpha_seckey -info "importing: $i" -eval "(IFS=; echo \"\$$i\")" >x -$GPG --import x || true +# Can only perform this test if we have Twofish -i=nopad_armored_msg -info "checking: $i" -eval "(IFS=; echo \"\$$i\")" >x -if echo "abc" | $GPG --passphrase-fd 0 -o - x > /dev/null ; then - : -else - error "bug#1179 is back in town" +if $GPG --with-colons --list-config ciphername | grep TWOFISH > /dev/null 2>/dev/null ; then + i=alpha_seckey + info "importing: $i" + eval "(IFS=; echo \"\$$i\")" >x + $GPG --import x || true + + i=nopad_armored_msg + info "checking: $i" + eval "(IFS=; echo \"\$$i\")" >x + if echo "abc" | $GPG --passphrase-fd 0 -o - x > /dev/null ; then + : + else + error "bug#1179 is back in town" + fi fi |