diff options
author | NIIBE Yutaka <[email protected]> | 2022-05-19 05:04:33 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-05-19 05:04:33 +0000 |
commit | 09357d7eae3efd8db1df79ef191f12038e905c6c (patch) | |
tree | 7e77a6f02d5c261676899d1cc7322f16ea8a38f2 /agent/pksign.c | |
parent | scd: Fix use of SCardListReaders for PC/SC. (diff) | |
download | gnupg-09357d7eae3efd8db1df79ef191f12038e905c6c.tar.gz gnupg-09357d7eae3efd8db1df79ef191f12038e905c6c.zip |
agent: Supply GRIP=NULL for agent_key_from_file, for real use.
* agent/findkey.c (agent_key_from_file): Change the semantics of
GRIP. Now, it's NULL for use by PKDECRYPT and PKSIGN/PKAUTH.
* agent/pkdecrypt.c (agent_pkdecrypt): Set GRIP=NULL.
* agent/pksign.c (agent_pksign_do): Likewise.
--
GnuPG-bug-id: 5099
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/pksign.c')
-rw-r--r-- | agent/pksign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/pksign.c b/agent/pksign.c index 170dc9644..a4aff041b 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -314,7 +314,7 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce, if (!ctrl->have_keygrip) return gpg_error (GPG_ERR_NO_SECKEY); - err = agent_key_from_file (ctrl, cache_nonce, desc_text, ctrl->keygrip, + err = agent_key_from_file (ctrl, cache_nonce, desc_text, NULL, &shadow_info, cache_mode, lookup_ttl, &s_skey, NULL, NULL); if (gpg_err_code (err) == GPG_ERR_NO_SECKEY) |