diff options
author | Kevin McCarthy <kevin@8t8.us> | 2017-05-29 11:48:42 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2017-05-29 11:48:42 -0700 |
commit | 54544e6a3d692d25a381d0af6164a433e44454fa (patch) | |
tree | 691c2454e20a57dafc7135c0964014153bed6f25 /init.h | |
parent | c1bcf4ba0220944bd87f4bf245ebb7598ce8404f (diff) |
Add self-encrypt options for PGP and S/MIME.
Add $pgp_self_encrypt, $pgp_self_encrypt_as, $smime_self_encrypt,
$smime_self_encrypt_as.
$pgp_sign_as and $smime_default_key are inappropriate to use, as they
specify signing key/certs. In some cases, this is a different value
than the encryption key/cert.
Diffstat (limited to 'init.h')
-rw-r--r-- | init.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -2059,6 +2059,20 @@ struct option_t MuttVars[] = { ** removed, while the inner \fCmultipart/signed\fP part is retained. ** (PGP only) */ + { "pgp_self_encrypt", DT_BOOL, R_NONE, OPTPGPSELFENCRYPT, 0 }, + /* + ** .pp + ** When \fIset\fP, PGP encrypted messages will also be encrypted + ** using the key in $$pgp_self_encrypt_as. + ** (PGP only) + */ + { "pgp_self_encrypt_as", DT_STR, R_NONE, UL &PgpSelfEncryptAs, 0 }, + /* + ** .pp + ** This is an additional key used to encrypt messages when $$pgp_self_encrypt + ** is \fIset\fP. It should be in keyid or fingerprint form (e.g. 0x00112233). + ** (PGP only) + */ { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 }, /* ** .pp @@ -3096,6 +3110,21 @@ struct option_t MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ + { "smime_self_encrypt", DT_BOOL, R_NONE, OPTSMIMESELFENCRYPT, 0 }, + /* + ** .pp + ** When \fIset\fP, S/MIME encrypted messages will also be encrypted + ** using the certificate in $$smime_self_encrypt_as. + ** (S/MIME only) + */ + { "smime_self_encrypt_as", DT_STR, R_NONE, UL &SmimeSelfEncryptAs, 0 }, + /* + ** .pp + ** This is an additional certificate used to encrypt messages when + ** $$smime_self_encrypt is \fIset\fP. It should be the + ** hash-value that OpenSSL generates. + ** (S/MIME only) + */ { "smime_sign_command", DT_STR, R_NONE, UL &SmimeSignCommand, 0}, /* ** .pp |