* crypto: small cleanups
This commit is contained in:
@ -74,8 +74,7 @@ get_gpg_crypto_context (MuMsgPartOptions opts, GError **err)
|
||||
(GMIME_GPG_CONTEXT(ctx),
|
||||
opts & MU_MSG_PART_OPTION_USE_AGENT);
|
||||
g_mime_gpg_context_set_always_trust
|
||||
(GMIME_GPG_CONTEXT(ctx),
|
||||
opts & MU_MSG_PART_OPTION_TRUST_ALWAYS);
|
||||
(GMIME_GPG_CONTEXT(ctx), FALSE);
|
||||
g_mime_gpg_context_set_auto_key_retrieve
|
||||
(GMIME_GPG_CONTEXT(ctx),
|
||||
opts & MU_MSG_PART_OPTION_AUTO_RETRIEVE_KEY);
|
||||
@ -97,8 +96,7 @@ get_pkcs7_crypto_context (MuMsgPartOptions opts, GError **err)
|
||||
}
|
||||
|
||||
g_mime_pkcs7_context_set_always_trust
|
||||
(GMIME_PKCS7_CONTEXT(ctx),
|
||||
opts & MU_MSG_PART_OPTION_TRUST_ALWAYS);
|
||||
(GMIME_PKCS7_CONTEXT(ctx), FALSE);
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
@ -220,8 +220,7 @@ enum _MuMsgPartOptions {
|
||||
MU_MSG_PART_OPTION_CHECK_SIGNATURES = 1 << 1,
|
||||
MU_MSG_PART_OPTION_AUTO_RETRIEVE_KEY = 1 << 2,
|
||||
MU_MSG_PART_OPTION_USE_AGENT = 1 << 3,
|
||||
MU_MSG_PART_OPTION_TRUST_ALWAYS = 1 << 4,
|
||||
MU_MSG_PART_OPTION_USE_PKCS7 = 1 << 5 /* gpg is the default */
|
||||
MU_MSG_PART_OPTION_USE_PKCS7 = 1 << 4 /* gpg is the default */
|
||||
};
|
||||
typedef enum _MuMsgPartOptions MuMsgPartOptions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user