mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* keybox.h (keybox_flag_t): New.
* keybox-search.c (get_flag_from_image, keybox_get_flags): New. (_keybox_get_flag_location): New. * certchain.c (gpgsm_validate_chain): Mark revoked certs in the keybox. * keylist.c (list_cert_colon): New arg VALIDITY; use it to print a revoked flag. (list_internal_keys): Retrieve validity flag. (list_external_cb): Pass 0 as validity flag. * keydb.c (keydb_get_flags, keydb_set_flags): New. (keydb_set_cert_flags): New. (lock_all): Return a proper error code. (keydb_lock): New. (keydb_delete): Don't lock but check that it has been locked. (keydb_update_keyblock): Ditto. * delete.c (delete_one): Take a lock.
This commit is contained in:
parent
bdae155c7b
commit
5bda9a8e74
12 changed files with 439 additions and 30 deletions
|
@ -105,7 +105,14 @@ delete_one (CTRL ctrl, const char *username)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
/* we need to search again to get back to the right position. */
|
||||
/* We need to search again to get back to the right position. */
|
||||
rc = keydb_lock (kh);
|
||||
if (rc)
|
||||
{
|
||||
log_error (_("error locking keybox: %s\n"), gpg_strerror (rc));
|
||||
goto leave;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
keydb_search_reset (kh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue