json: Use a request origin of "browser".

* src/gpgme-json.c (_create_new_context): Set flag.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2018-03-23 15:32:06 +01:00
parent b9000bc293
commit e5abf4827a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -433,6 +433,7 @@ _create_new_context (gpgme_protocol_t proto)
if (err) if (err)
log_fatal ("error creating GPGME context: %s\n", gpg_strerror (err)); log_fatal ("error creating GPGME context: %s\n", gpg_strerror (err));
gpgme_set_protocol (ctx, proto); gpgme_set_protocol (ctx, proto);
gpgme_set_ctx_flag (ctx, "request-origin", "browser");
return ctx; return ctx;
} }