[PATCH 07/18] crypto: new decryption policy "auto"
David Bremner
david at tethera.net
Tue Nov 14 05:21:10 PST 2017
Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:
> GMimeObject *
> -_notmuch_crypto_decrypt (notmuch_message_t *message,
> +_notmuch_crypto_decrypt (notmuch_decryption_policy_t decrypt,
> + notmuch_message_t *message,
> g_mime_3_unused(GMimeCryptoContext* crypto_ctx),
> GMimeMultipartEncrypted *part,
> GMimeDecryptResult **decrypt_result,
> GError **err)
> {
> GMimeObject *ret = NULL;
> + if (decrypt == NOTMUCH_DECRYPT_FALSE)
> + return NULL;
I'm going to assume that all is well and no return value from
_notmuch_crypto_decrypt is used without guarding for NULL.
d
More information about the notmuch
mailing list