1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

* armor.test: Tweak the bug 1179 test to only run if Twofish is

included in the program.  The sample message requires Twofish.
This commit is contained in:
David Shaw 2010-10-20 02:27:25 +00:00
parent 012e7ce7b8
commit 72ef16b939
2 changed files with 20 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2010-10-19 David Shaw <dshaw@jabberwocky.com>
* armor.test: Tweak the bug 1179 test to only run if Twofish is
included in the program. The sample message requires Twofish.
2010-05-12 Werner Koch <wk@g10code.com>
* armor.test: Extend to test bug 1179.

View File

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