X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fcrypto.h;h=f8bda0d1b1084fe932d3e08a8bf8453129420961;hp=fdbb5da5d49de736f2d991f7b8d6e24e6af78aa4;hb=ab0ae8b1c086ca3878f16ce40cc421eeb206c79e;hpb=a6b0772b60d9191fcc291358eec3d78bfea31f1c diff --git a/util/crypto.h b/util/crypto.h index fdbb5da5..f8bda0d1 100644 --- a/util/crypto.h +++ b/util/crypto.h @@ -50,7 +50,7 @@ typedef struct _notmuch_message_crypto { /* signature status of the whole message (either the whole message * is signed, or it is not) -- this means that partially-signed * messages will get no signature status. */ - GMimeSignatureList * sig_list; + GMimeSignatureList *sig_list; /* if part of the message was signed, and the MUA is clever, it * can determine on its own exactly which part and try to make * more sense of it. */ @@ -62,7 +62,7 @@ typedef struct _notmuch_message_crypto { /* the value of any "Subject:" header in the cryptographic payload * (the top level part within the crypto envelope), converted to * UTF-8 */ - char * payload_subject; + char *payload_subject; /* if both signed and encrypted, was the signature encrypted? */ bool signature_encrypted; @@ -90,9 +90,12 @@ _notmuch_message_crypto_successful_decryption (_notmuch_message_crypto_t *msg_cr /* call potential_payload during a depth-first-search on a message * when encountering a message part that is not part of the envelope. + * + * Returns true if part is the root of the cryptographic payload of + * this message. */ -notmuch_status_t -_notmuch_message_crypto_potential_payload (_notmuch_message_crypto_t *msg_crypto, GMimeObject *payload, GMimeObject *parent, int childnum); +bool +_notmuch_message_crypto_potential_payload (_notmuch_message_crypto_t *msg_crypto, GMimeObject *part, GMimeObject *parent, int childnum); #ifdef __cplusplus