diff options
author | Werner Koch <wk@gnupg.org> | 2021-06-11 20:15:13 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-06-11 20:15:32 +0200 |
commit | 6b76693ff54297456b724ba53f7e6283e2a5a126 (patch) | |
tree | 9f7443424f24cfbf895936b98c42998cd7c2d1a6 /sm/import.c | |
parent | scd: Support clearing of Reset Code by ''. (diff) | |
download | gnupg2-6b76693ff54297456b724ba53f7e6283e2a5a126.tar.xz gnupg2-6b76693ff54297456b724ba53f7e6283e2a5a126.zip |
sm: Fix finding of issuer in use-keyboxd mode.
* sm/keydb.c (struct keydb_local_s): Add field saved_search_result.
(keydb_push_found_state): Implement for keyboxd.
(keydb_pop_found_state): Ditto.
(keydb_get_cert): Do not release the cert so that the function can be
used again to get the same cert. This is the same behaviour as in
pubring.kbx mode.
* sm/certchain.c, sm/import.c: Improve some error messages.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm/import.c')
-rw-r--r-- | sm/import.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/import.c b/sm/import.c index 0b8fbadb6..d506913d0 100644 --- a/sm/import.c +++ b/sm/import.c @@ -459,7 +459,8 @@ reimport_one (ctrl_t ctrl, struct stats_s *stats, int in_fd) err = keydb_get_cert (kh, &cert); if (err) { - log_error ("keydb_get_cert() failed: %s\n", gpg_strerror (err)); + log_error ("keydb_get_cert failed in %s: %s <%s>\n", + __func__, gpg_strerror (err), gpg_strsource (err)); print_import_problem (ctrl, NULL, 1); stats->not_imported++; continue; |