From 0b6f593b29ad4ff7e7c06d9f0b2b46b629830098 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 25 Jun 2002 01:19:32 +0000 Subject: implemented camel_gpg_context_set_always_trust() svn path=/trunk/; revision=17269 --- camel/ChangeLog | 1 + camel/camel-gpg-context.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) (limited to 'camel') 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 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) { -- cgit v1.2.3