From: Kevin McCarthy Date: Sat, 20 Jul 2019 21:48:06 +0000 (-0700) Subject: Add another HEADER security bit for autocrypt. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=009b62c9f773b82b20b6798be3125f471569f14d;p=mutt Add another HEADER security bit for autocrypt. --- diff --git a/mutt.h b/mutt.h index 7bd2be28..706c87fb 100644 --- a/mutt.h +++ b/mutt.h @@ -822,7 +822,9 @@ typedef struct mutt_thread THREAD; typedef struct header { - unsigned int security : 12; /* bit 0-8: flags, bit 9,10: application. + unsigned int security : 13; /* bit 0-9: flags + bit 10-11: application. + bit 12: traditional pgp. see: mutt_crypt.h pgplib.h, smime.h */ unsigned int mime : 1; /* has a MIME-Version header? */ diff --git a/mutt_crypt.h b/mutt_crypt.h index 6b11b324..bd49bad4 100644 --- a/mutt_crypt.h +++ b/mutt_crypt.h @@ -30,7 +30,7 @@ information hiding. */ - +/* NOTE: adding flags means HEADER.security bit width needs to be increased */ #define ENCRYPT (1 << 0) #define SIGN (1 << 1) #define GOODSIGN (1 << 2) @@ -40,11 +40,12 @@ #define KEYBLOCK (1 << 6) /* KEY too generic? */ #define INLINE (1 << 7) #define OPPENCRYPT (1 << 8) /* Opportunistic encrypt mode */ +#define AUTOCRYPT (1 << 9) /* TODO: should this include the ENCRYPT and SIGN flags */ -#define APPLICATION_PGP (1 << 9) -#define APPLICATION_SMIME (1 << 10) +#define APPLICATION_PGP (1 << 10) +#define APPLICATION_SMIME (1 << 11) -#define PGP_TRADITIONAL_CHECKED (1 << 11) +#define PGP_TRADITIONAL_CHECKED (1 << 12) #define PGPENCRYPT (APPLICATION_PGP | ENCRYPT) #define PGPSIGN (APPLICATION_PGP | SIGN)