diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-25 09:19:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-25 09:19:32 +0800 |
commit | 0b6f593b29ad4ff7e7c06d9f0b2b46b629830098 (patch) | |
tree | 2dcc755fb8464330211eb136909e4a0832df9f89 /camel | |
parent | 49d87cf640afc8e9b9b376fa677728077ba9cda5 (diff) | |
download | gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar.gz gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar.bz2 gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar.lz gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar.xz gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.tar.zst gsoc2013-evolution-0b6f593b29ad4ff7e7c06d9f0b2b46b629830098.zip |
implemented camel_gpg_context_set_always_trust()
svn path=/trunk/; revision=17269
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 1 | ||||
-rw-r--r-- | camel/camel-gpg-context.c | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 11be020513..bf05be0b7c 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -6,6 +6,7 @@ before --status-fd will send a NEED_PASSPHRASE status message). (gpg_ctx_parse_status): When we encounter a BAD_PASSPHRASE, tell the session to uncache it. + (camel_gpg_context_set_always_trust): Implemented. 2002-06-23 Jeffrey Stedfast <fejj@ximian.com> diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 75ecce6704..608bb42dc8 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -154,6 +154,24 @@ camel_gpg_context_new (CamelSession *session, const char *path) return cipher; } + +/** + * camel_gpg_context_set_always_trust: + * @ctx: gpg context + * @always_trust always truct flag + * + * Sets the @always_trust flag on the gpg context which is used for + * encryption. + **/ +void +camel_gpg_context_set_always_trust (CamelGpgContext *ctx, gboolean always_trust) +{ + g_return_if_fail (CAMEL_IS_GPG_CONTEXT (ctx)); + + ctx->always_trust = always_trust; +} + + static const char * gpg_hash_to_id (CamelCipherContext *context, CamelCipherHash hash) { |