aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2021-12-14 14:44:37 +0000
committerIngo Klöcker <[email protected]>2021-12-14 14:44:37 +0000
commitd35d44efaf72f90ee4f92af8382c4bcb9982da3f (patch)
tree90e0e4e08394a6ac3d3a43f7e40c6d4ac39dcb8f /doc
parentqt: Add pattern used for WKD lookup to result (diff)
downloadgpgme-d35d44efaf72f90ee4f92af8382c4bcb9982da3f.tar.gz
gpgme-d35d44efaf72f90ee4f92af8382c4bcb9982da3f.zip
core: Allow setting import filters when importing keys
* src/context.h (struct gpgme_context): New field import_filter. * src/engine-backend.h (struct engine_ops): Add arg import_filter to field 'import'. * src/engine-gpg.c (gpg_import): Add arg import_filter and pass option --import-filter with argument value to gpg. Adjust all callers. * src/engine-gpgsm.c (gpgsm_import): Add dummy arg import_filter. * src/gpgme.c (gpgme_release): Free 'import_filter'. (gpgme_set_ctx_flag, gpgme_get_ctx_flag): New flag "import-filter". * tests/run-import.c (main): Add option --import-filter. -- This makes the --import-filter option available in the GPGME API for key imports. GnuPG-bug-id: 5739
Diffstat (limited to 'doc')
-rw-r--r--doc/gpgme.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index c37141a0..cc8ff5e5 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -3207,6 +3207,12 @@ The string given in @var{value} is passed to the GnuPG engine to set
the origin of imported keys. Valid values are documented in the GnuPG
manual and the gpg man page under the option @option{--key-origin}.
+@item "import-filter"
+@since{1.16.1}
+The string given in @var{value} is passed to the GnuPG engine to use as
+filter when importing keys. Valid values are documented in the GnuPG
+manual and the gpg man page under the option @option{--import-filter}.
+
@end table
This function returns @code{0} on success.