diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-07-11 18:06:56 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-08-03 14:08:09 -0700 |
commit | 7fd50ddd8f4899232567573e26faf1863ae5b390 (patch) | |
tree | d34e3a56c81b1943fdf7a28fe503a0c4caf8044f /mutt.h | |
parent | f92049e9172755e0ee9369e16c885958dee89db9 (diff) |
Add autocrypt header parsing to mutt_parse_rfc822_line().
Convert parse_parameters() for autocrypt header usage:
* change to use a BUFFER to accomodate large autocrypt keydata
attribute values.
* Autocrypt header parameters are not rfc2231 compliant. Rather
than rolling another very similar function, just change the
existing one to allow space separation.
Diffstat (limited to 'mutt.h')
-rw-r--r-- | mutt.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -673,6 +673,17 @@ typedef struct alias #define MUTT_ENV_CHANGED_XLABEL (1<<2) /* X-Label edited */ #define MUTT_ENV_CHANGED_SUBJECT (1<<3) /* Protected header update */ +#ifdef USE_AUTOCRYPT +typedef struct autocrypt +{ + char *addr; + char *keydata; + unsigned int prefer_encrypt : 1; + unsigned int invalid : 1; + struct autocrypt *next; /* used by gossip headers */ +} AUTOCRYPTHDR; +#endif + typedef struct envelope { ADDRESS *return_path; @@ -695,7 +706,9 @@ typedef struct envelope LIST *references; /* message references (in reverse order) */ LIST *in_reply_to; /* in-reply-to header content */ LIST *userhdrs; /* user defined headers */ - +#ifdef USE_AUTOCRYPT + AUTOCRYPTHDR *autocrypt; +#endif unsigned char changed; /* The MUTT_ENV_CHANGED_* flags specify which * fields are modified */ } ENVELOPE; |