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/pkdecrypt.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/pkdecrypt.c')
-rw-r--r-- | agent/pkdecrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/pkdecrypt.c b/agent/pkdecrypt.c index cf6c1491d..ba3d90469 100644 --- a/agent/pkdecrypt.c +++ b/agent/pkdecrypt.c @@ -68,7 +68,7 @@ agent_pkdecrypt (ctrl_t ctrl, const char *desc_text, log_printhex (ciphertext, ciphertextlen, "cipher: "); } err = agent_key_from_file (ctrl, NULL, desc_text, - ctrl->keygrip, &shadow_info, + NULL, &shadow_info, CACHE_MODE_NORMAL, NULL, &s_skey, NULL, NULL); if (gpg_err_code (err) == GPG_ERR_NO_SECKEY) no_shadow_info = 1; |