aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gpgme.texi
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-23 14:27:32 +0000
committerWerner Koch <[email protected]>2018-03-23 14:27:32 +0000
commitb9000bc293164ff62efa7e91e5cf6d5fc19d482f (patch)
treea664a1e81aa8041a86b2ae931255119d4af99089 /doc/gpgme.texi
parentbuild: Allow building with released libgpg-error. (diff)
downloadgpgme-b9000bc293164ff62efa7e91e5cf6d5fc19d482f.tar.gz
gpgme-b9000bc293164ff62efa7e91e5cf6d5fc19d482f.zip
core: New gpgme_set_ctx_flag "request-origin".
* src/context.h (gpgme_context): Add 'request_origin'. * src/gpgme.c (gpgme_release): Free that field. (gpgme_set_ctx_flag, gpgme_get_ctx_flag): Add "request-origin". * src/engine-backend.h (engine_ops): Add 'set_engine_ops' func ptr and adjust all users. * src/engine.c (_gpgme_engine_set_engine_flags): New. * src/op-support.c (_gpgme_op_reset): Call that func. * src/engine-gpg.c (struct engine_gpg): Add 'request_origin'. (gpg_set_engine_flags): New. (_gpgme_engine_ops_gpg): Hook it. (build_argv): Use command line option --request-origin. * src/engine-gpgsm.c (struct engine_gpgsm): Add 'request_origin'. (gpgsm_set_engine_flags): New. (_gpgme_engine_ops_gpgsm): Hook it. (start): Send OPTION "request-origin". * src/engine-assuan.c (struct engine_llass): Add 'request_origin'. (gpgsm_set_engine_flags): New. (_gpgme_engine_ops_assuan): Hook it. (start): Send OPTION "pretend-request-origin". Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--doc/gpgme.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index 37cf16ac..ab554d86 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -3065,6 +3065,11 @@ a message signed by a brand new key (which you naturally will not have
on your local keyring), the operator can tell both your IP address and
the time when you verified the signature.
+@item "request-origin"
+The string given in @var{value} is passed to the GnuPG engines to
+request restrictions based on the origin of the request. Valid values
+are documented in the GnuPG manual and the gpg man page under the
+option ``--request-origin''.
@end table