aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog1
-rw-r--r--camel/camel-gpg-context.c18
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)
{