From e5abf4827aead50437bbdff8cfdd5e9fdc6ed72d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 23 Mar 2018 15:32:06 +0100 Subject: [PATCH] json: Use a request origin of "browser". * src/gpgme-json.c (_create_new_context): Set flag. Signed-off-by: Werner Koch --- src/gpgme-json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index 09b34bbb..e38f9d89 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -433,6 +433,7 @@ _create_new_context (gpgme_protocol_t proto) if (err) log_fatal ("error creating GPGME context: %s\n", gpg_strerror (err)); gpgme_set_protocol (ctx, proto); + gpgme_set_ctx_flag (ctx, "request-origin", "browser"); return ctx; }