aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgme.c')
-rw-r--r--src/gpgme.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index 135a75a7..f6d7f38d 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -261,6 +261,7 @@ gpgme_release (gpgme_ctx_t ctx)
free (ctx->cert_expire);
free (ctx->key_origin);
free (ctx->import_filter);
+ free (ctx->import_options);
_gpgme_engine_info_release (ctx->engine_info);
ctx->engine_info = NULL;
DESTROY_LOCK (ctx->lock);
@@ -607,6 +608,13 @@ gpgme_set_ctx_flag (gpgme_ctx_t ctx, const char *name, const char *value)
if (!ctx->import_filter)
err = gpg_error_from_syserror ();
}
+ else if (!strcmp (name, "import-options"))
+ {
+ free (ctx->import_options);
+ ctx->import_options = strdup (value);
+ if (!ctx->import_options)
+ err = gpg_error_from_syserror ();
+ }
else if (!strcmp (name, "no-auto-check-trustdb"))
{
ctx->no_auto_check_trustdb = abool;
@@ -692,6 +700,10 @@ gpgme_get_ctx_flag (gpgme_ctx_t ctx, const char *name)
{
return ctx->import_filter? ctx->import_filter : "";
}
+ else if (!strcmp (name, "import-options"))
+ {
+ return ctx->import_options? ctx->import_options : "";
+ }
else if (!strcmp (name, "no-auto-check-trustdb"))
{
return ctx->no_auto_check_trustdb? "1":"";