gpg: Store key origin info for new DANE and WKD retrieved keys.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Jul 2017 18:05:28 +0000 (20:05 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Jul 2017 18:09:52 +0000 (20:09 +0200)
commite7068bf92ec5ca5d440346d43a382c1f625b924d
treec72b3e3b26b38c3efd0e1377809354721bde778c
parentf6f0dd4d5ea85e0b16e96d7678b1d508182049a8
gpg: Store key origin info for new DANE and WKD retrieved keys.

* g10/import.c (apply_meta_data): Remove arg 'merge'.  Add arg 'url'.
Implement WKD and DANE key origin.
(import_keys_internal): Add arg 'url' and change all callers.
(import_keys_es_stream): Ditto.
(import): Ditto.
(import_one): Ditto.
* g10/keylist.c (list_keyblock_print): Fix update URL printing.
* g10/call-dirmngr.c (gpg_dirmngr_wkd_get): Add arg 'r_url' to return
the SOURCE.  Pass ks_status_cb to assuan_transact.
* g10/keyserver.c (keyserver_import_wkd): Get that URL and pass it to
the import function.
--

Note that this only for new keys.  Merging this info will be added
soon.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/call-dirmngr.c
g10/call-dirmngr.h
g10/gpg.c
g10/import.c
g10/keylist.c
g10/keyserver.c
g10/main.h