1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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
This commit is contained in:
Werner Koch 2024-10-14 16:46:27 +02:00
parent 69a8aefa5b
commit cb5f4aba57
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
3 changed files with 10 additions and 0 deletions

3
NEWS
View File

@ -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]

View File

@ -2637,6 +2637,11 @@ crl_cache_list (estream_t fp)
crl_cache_entry_t entry;
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 )

View File

@ -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;