mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgsm: Add compatibility flag no-keyinfo-cache
* sm/gpgsm.c (compatibility_flags): Add flag. * sm/gpgsm.h (COMPAT_NO_KEYINFO_CACHE): New. * sm/call-agent.c (gpgsm_agent_istrusted): Act upon it. (gpgsm_agent_keyinfo): Ditto.
This commit is contained in:
parent
241971fac0
commit
f8f6c6c761
3 changed files with 9 additions and 0 deletions
|
@ -1028,6 +1028,9 @@ gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert, const char *hexfpr,
|
|||
}
|
||||
|
||||
/* First try to get the info from the cache. */
|
||||
if ((opt.compat_flags & COMPAT_NO_KEYINFO_CACHE))
|
||||
istrusted_cache_disabled = 1;
|
||||
|
||||
if (!istrusted_cache_disabled && !istrusted_cache_valid)
|
||||
{
|
||||
/* Cache is empty - fill it. */
|
||||
|
@ -1462,6 +1465,9 @@ gpgsm_agent_keyinfo (ctrl_t ctrl, const char *hexkeygrip, char **r_serialno)
|
|||
return gpg_error (GPG_ERR_INV_VALUE);
|
||||
|
||||
/* First try to fill the cache. */
|
||||
if ((opt.compat_flags & COMPAT_NO_KEYINFO_CACHE))
|
||||
keyinfo_cache_disabled = 1;
|
||||
|
||||
if (!keyinfo_cache_disabled && !ctrl->keyinfo_cache_valid)
|
||||
{
|
||||
parm.fill_mode = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue