diff options
author | Werner Koch <[email protected]> | 2024-10-14 14:46:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-10-14 14:46:27 +0000 |
commit | cb5f4aba57dc29271aeb2fa2799bf17c8078adbe (patch) | |
tree | 8e22b5e4305e7fb85150ba772b2a9e02e421741a | |
parent | gpgsm: Fix cached istrusted lookup. (diff) | |
download | gnupg-cb5f4aba57dc29271aeb2fa2799bf17c8078adbe.tar.gz gnupg-cb5f4aba57dc29271aeb2fa2799bf17c8078adbe.zip |
dirmngr: Print a brief list of URLs with LISTCRLS.
* dirmngr/crlcache.c (crl_cache_list): Print a summary of URLs.
* sm/call-dirmngr.c (gpgsm_dirmngr_run_command): Print a notice to
stdout if the dirmngr has been disabled.
--
GnuPG-bug-id: 7337
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | dirmngr/crlcache.c | 5 | ||||
-rw-r--r-- | sm/call-dirmngr.c | 2 |
3 files changed, 10 insertions, 0 deletions
@@ -27,6 +27,9 @@ Noteworthy changes in version 2.2.45 (unreleased) * agent: Fix KEYTOCARD for the use case with loopback pinentry. [T7283] + * dirmngr: A list of used URLs for loaded CRLs is printed first in + the output of the LISTCRL command. [T7337] + * gpgconf: Allow listing of options --trusted-key, add-desig-revoker, and default-new-key-adsk. [T6882] diff --git a/dirmngr/crlcache.c b/dirmngr/crlcache.c index cc5300df7..8c2ffc030 100644 --- a/dirmngr/crlcache.c +++ b/dirmngr/crlcache.c @@ -2638,6 +2638,11 @@ crl_cache_list (estream_t fp) gpg_error_t err = 0; for (entry = cache->entries; + entry && !entry->deleted; + entry = entry->next ) + es_fprintf (fp, "URL: %s\n", entry->url ); + + for (entry = cache->entries; entry && !entry->deleted && !err; entry = entry->next ) err = list_one_crl_entry (cache, entry, fp); diff --git a/sm/call-dirmngr.c b/sm/call-dirmngr.c index 0bd805e1b..e454c52d5 100644 --- a/sm/call-dirmngr.c +++ b/sm/call-dirmngr.c @@ -1080,6 +1080,8 @@ gpgsm_dirmngr_run_command (ctrl_t ctrl, const char *command, keydb_close_all_files (); rc = start_dirmngr (ctrl); + if (gpg_err_code (rc) == GPG_ERR_NO_DIRMNGR) + fputs (_("no dirmngr running in this session\n"), stdout); if (rc) return rc; |