mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
tests/smime: avoid copying the key+cert.pem around
No functional change. We no longer need to identify the key and cert to mml-mode when sending an S/MIME message, so making a copy of key+cert.pem to test_suite.pem is superfluous. Get rid of the extra file. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
parent
2e351d10c2
commit
7eaac52ddb
1 changed files with 2 additions and 4 deletions
|
@ -6,9 +6,7 @@ test_description='S/MIME signature verification and decryption'
|
||||||
test_require_external_prereq openssl
|
test_require_external_prereq openssl
|
||||||
test_require_external_prereq gpgsm
|
test_require_external_prereq gpgsm
|
||||||
|
|
||||||
cp $NOTMUCH_SRCDIR/test/smime/key+cert.pem test_suite.pem
|
FINGERPRINT=$(openssl x509 -fingerprint -in "$NOTMUCH_SRCDIR/test/smime/key+cert.pem" -noout | sed -e 's/^.*=//' -e s/://g)
|
||||||
|
|
||||||
FINGERPRINT=$(openssl x509 -fingerprint -in test_suite.pem -noout | sed -e 's/^.*=//' -e s/://g)
|
|
||||||
|
|
||||||
add_gpgsm_home
|
add_gpgsm_home
|
||||||
|
|
||||||
|
@ -74,7 +72,7 @@ test_expect_equal_json \
|
||||||
|
|
||||||
test_begin_subtest "Decryption and signature verification (openssl)"
|
test_begin_subtest "Decryption and signature verification (openssl)"
|
||||||
notmuch show --format=raw subject:"test encrypted message 001" |\
|
notmuch show --format=raw subject:"test encrypted message 001" |\
|
||||||
openssl smime -decrypt -recip test_suite.pem |\
|
openssl smime -decrypt -recip $NOTMUCH_SRCDIR/test/smime/key+cert.pem |\
|
||||||
openssl smime -verify -CAfile $NOTMUCH_SRCDIR/test/smime/test.crt 2>OUTPUT
|
openssl smime -verify -CAfile $NOTMUCH_SRCDIR/test/smime/test.crt 2>OUTPUT
|
||||||
cat <<EOF > EXPECTED
|
cat <<EOF > EXPECTED
|
||||||
Verification successful
|
Verification successful
|
||||||
|
|
Loading…
Reference in a new issue