]> git.notmuchmail.org Git - notmuch/commit
tests: disable CRL checks from gpgsm
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 19 Mar 2020 04:15:08 +0000 (00:15 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 30 Apr 2020 21:02:38 +0000 (18:02 -0300)
commit9055dfdae41ba762b12434fe678fc524ea3ed618
treeedf22a4fd27817bdacaf7e88436acc7c36ccae2a
parentb415ec06c309974247d202c21a0f9f1b0d828f5d
tests: disable CRL checks from gpgsm

GPGME has a strange failure mode when it is in offline mode, and/or
when certificates don't have any CRLs: in particular, it refuses to
accept the validity of any certificate other than a "root" cert.

This can be worked around by setting the `disable-crl-checks`
configuration variable for gpgsm.

I've reported this to the GPGME upstream at
https://dev.gnupg.org/T4883, but I have no idea how it will be
resolved.  In the meantime, we'll just work around it.

Note that this fixes the test for verification of
id:smime-multipart-signed@protected-headers.example, because
multipart/signed messages are already handled correctly (one-part
PKCS#7 messages will get fixed later).

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
test/T356-protected-headers.sh
test/test-lib.sh