mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Make debugging search descriptors easier.
* g10/keydb.c (dump_search_desc): Rename from this... (keydb_search_desc_dump): ... to this. Only process a single search descriptor. Improve output. Don't mark as static. Update callers. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
a052c30d31
commit
11ec4785df
2 changed files with 78 additions and 50 deletions
|
@ -133,6 +133,10 @@ union pref_hint
|
|||
#define KEYDB_RESOURCE_FLAG_READONLY 8 /* Open in read only mode. */
|
||||
#define KEYDB_RESOURCE_FLAG_GPGVDEF 16 /* Default file for gpgv. */
|
||||
|
||||
/* Format a search term for debugging output. The caller must free
|
||||
the result. */
|
||||
char *keydb_search_desc_dump (struct keydb_search_desc *desc);
|
||||
|
||||
/* Register a resource (keyring or keybox). The first keyring or
|
||||
keybox that is added using this function is created if it does not
|
||||
already exist and the KEYDB_RESOURCE_FLAG_READONLY is not set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue