This handler is passed the application/octet-stream directly. The caller must propagate b->goodsig to its parent.
2719{
2720 int is_signed;
2721 int rc = 0;
2722
2724
2726 if (!fp_out)
2727 {
2730 {
2732 }
2733 return -1;
2734 }
2735
2737 if (tattach)
2738 {
2739 tattach->
goodsig = is_signed > 0;
2740
2742 {
2744 _(
"[-- The following data is PGP/MIME signed and encrypted --]\n\n") :
2745 _(
"[-- The following data is PGP/MIME encrypted --]\n\n"));
2747 }
2748
2749
2750
2751
2752
2756
2757 FILE *fp_save = state->
fp_in;
2758 state->
fp_in = fp_out;
2760 state->
fp_in = fp_save;
2761
2762
2763
2764
2766 {
2770 }
2771
2772
2773
2774
2777
2779 {
2782 _(
"[-- End of PGP/MIME signed and encrypted data --]\n") :
2783 _(
"[-- End of PGP/MIME encrypted data --]\n"));
2784 }
2785
2788 }
2789 else
2790 {
2791#ifdef USE_AUTOCRYPT
2793#endif
2794 {
2796 }
2797 rc = -1;
2798 }
2799
2802
2803 return rc;
2804}
SecurityFlags mutt_is_multipart_signed(struct Body *b)
Is a message signed?
static struct Body * decrypt_part(struct Body *b, struct State *state, FILE *fp_out, bool is_smime, int *r_is_signed)
Decrypt a PGP or SMIME message.
void mutt_body_free(struct Body **ptr)
Free a Body.
void mutt_env_free(struct Envelope **ptr)
Free an Envelope.
#define mutt_file_fclose(FP)
bool OptAutocryptGpgme
(pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c
int mutt_protected_headers_handler(struct Body *b_email, struct State *state)
Handler for protected headers - Implements handler_t -.
#define mutt_message(...)
#define mutt_debug(LEVEL,...)
int mutt_body_handler(struct Body *b, struct State *state)
Handler for the Body of an email.
@ LL_DEBUG2
Log at debug level 2.
void state_attach_puts(struct State *state, const char *t)
Write a string to the state.
#define state_puts(STATE, STR)
#define STATE_DISPLAY
Output is displayed to the user.
struct Body * parts
parts of a multipart or message/rfc822
struct Envelope * mime_headers
Memory hole protected headers.
struct Body * next
next attachment in the list
bool goodsig
Good cryptographic signature.
StateFlags flags
Flags, e.g. STATE_DISPLAY.
FILE * fp_in
File to read from.
#define mutt_file_mkstemp()