aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-import.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-06-12tests: Add --import-filter option to usage info of run-importIngo Klöcker1-0/+1
* tests/run-import.c (show_usage): Add option --import-filter. --
2024-06-12core: Allow setting import options when importing keysIngo Klöcker1-0/+15
* src/context.h (struct gpgme_context): New field import_options. * src/engine-backend.h (struct engine_ops): Add arg import_options to field 'import'. * src/engine-gpg.c (gpg_import): Add arg import_options and pass option --import-options with argument value to gpg. * src/engine-gpgsm.c (gpgsm_import): Add dummy arg import_options. * src/engine.c (_gpgme_engine_op_import): Add arg import_options and pass option to import function of engine. * src/engine.h (_gpgme_engine_op_import): Add arg import_options. * src/gpgme.c (gpgme_release): Free 'import_options'. (gpgme_set_ctx_flag, gpgme_get_ctx_flag): New flag "import-options". * src/import.c (_gpgme_op_import_start, _gpgme_op_import_keys_start, _gpgme_op_receive_keys_start): Pass import options stored in context to _gpgme_engine_op_import. * tests/run-import.c (show_usage, main): Add option --import-options. -- This makes the --import-options option available in the GPGME API for key imports. GnuPG-bug-id: 7152
2023-08-14tests: Support offline mode in run-importIngo Klöcker1-0/+9
* tests/run-import.c (show_usage): New option --offline. (main): Parse new option. Set offline mode accordingly. -- This allows testing gpgme_op_import with (and without) offline mode. GnuPG-bug-id: 6648
2021-12-14core: Allow setting import filters when importing keysIngo Klöcker1-0/+14
* 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
2021-12-13core: Allow specifiying a key origin when importing keysIngo Klöcker1-0/+16
* src/context.h (struct gpgme_context): New field key_origin. * src/engine-backend.h (struct engine_ops): Add arg key_origin to field 'import'. * src/engine-gpg.c (gpg_import): Add arg key_origin and pass option --key-origin with argument value to gpg. Adjust all callers. * src/engine-gpgsm.c (gpgsm_import): Add dummy arg key_origin. * src/gpgme.c (gpgme_release): Free 'key_origin'. (gpgme_set_ctx_flag, gpgme_get_ctx_flag): New flag "key-origin". * tests/run-import.c (main): Add option --key-origin. * tests/gpg/t-import.c (main): Set and verify key origin. -- This makes the --key-origin option available in the GPGME API for key imports. GnuPG-bug-id: 5733
2019-05-02tests: Add cms mode to run-importAndre Heinecke1-2/+15
* tests/run-import.c (show_usage): Add doc for cms / openpgp. (main): Handle protocol.
2019-02-28tests: Let run-verify print the de-vs flag.Werner Koch1-1/+1
* tests/run-verify.c (print_result): Chack is_de_vs. * tests/run-import.c (main): Fix bad parameter for format string. Signed-off-by: Werner Koch <[email protected]>
2019-01-15tests: Add diagnostic example to run-import.cAndre Heinecke1-0/+14
* tests/run-import.c (main): Show diagnostics in verbose mode.
2018-11-16Add SPDX identifiers to most source filesWerner Koch1-17/+18
-- Signed-off-by: Werner Koch <[email protected]>
2016-11-16doc: Replace http: by https: in core source files.Werner Koch1-1/+1
-- Signed-off-by: Werner Koch <[email protected]>
2012-09-25Remove all trailing whitespace from source filesWerner Koch1-9/+9
-- Command used: sed -i 's,[ \t]*$,,' FILE
2009-07-07Move gpg test programs to the top test directory.Werner Koch1-2/+2
2009-06-16Add support for gpg --fetch-keys.Werner Koch1-0/+129