diff options
author | Werner Koch <[email protected]> | 2017-07-13 16:22:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-13 16:29:01 +0000 |
commit | 330212efb927c119bb5135856f8582c0e4e2e6b7 (patch) | |
tree | d2e63ee243a7c7ab81b2d943a31f981c2c15b8e1 /g10/card-util.c | |
parent | gpg: New option --key-origin. (diff) | |
download | gnupg-330212efb927c119bb5135856f8582c0e4e2e6b7.tar.gz gnupg-330212efb927c119bb5135856f8582c0e4e2e6b7.zip |
gpg: Pass key origin values to import functions.
* g10/import.c (import_keys_stream): Remove this unused function.
(import_keys_internal): Add arg origin.
(import_keys): Ditto.
(import_keys_es_stream): Ditto.
(import): Ditto.
(import_one): Ditto.
(apply_meta_data): New stub.
(import_secret_one): Pass 0 for ORIGIN.
* g10/keyserver.c (keyserver_get_chunk): For now pass 0 for ORIGIN.
(keyserver_fetch): Add arg origin.
(keyserver_import_cert): Pass KEYORG_DANE for ORIGIN.
(keyserver_import_wkd): Pass KEYORG_WKD for ORIGIN.
* g10/gpg.c (main): Pass OPT.KEY_ORIGIN to import_keys and
keyserver_fetch.
* g10/card-util.c (fetch_url): Pass KEYORG_URL for ORIGIN.
--
This is just the framework; applying the meta data will be done in
another commit.
GnuPG-bug-id: 3252
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/card-util.c')
-rw-r--r-- | g10/card-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index 78cd52bfe..f1795b8c6 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -818,7 +818,7 @@ fetch_url (ctrl_t ctrl) strlist_t sl = NULL; add_to_strlist (&sl, info.pubkey_url); - rc = keyserver_fetch (ctrl, sl); + rc = keyserver_fetch (ctrl, sl, KEYORG_URL); free_strlist (sl); } else if (info.fpr1valid) |