diff options
author | NIIBE Yutaka <[email protected]> | 2025-05-14 02:41:31 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2025-05-14 02:41:31 +0000 |
commit | 45a11327f3bd6e54b8cbb25460547d4556df0bc9 (patch) | |
tree | f29538053b5084efc41af298b1cce6b1433f39e4 /agent/pkdecrypt.c | |
parent | gpg: Make combination of show-only-fpr-mbox and show-unusable-uid work. (diff) | |
download | gnupg-45a11327f3bd6e54b8cbb25460547d4556df0bc9.tar.gz gnupg-45a11327f3bd6e54b8cbb25460547d4556df0bc9.zip |
agent: Support the use case of composite PQC for prompting.
* agent/findkey.c (agent_key_from_file): Take care of the case
where GRIP==CTRL->keygrip1.
* agent/pkdecrypt.c (composite_pgp_kem_decrypt): Use NULL for the
GRIP, it's for crypto operation where prompt is expected.
--
GnuPG-bug-id: 7648
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 ad3ac568f..4d187e0cd 100644 --- a/agent/pkdecrypt.c +++ b/agent/pkdecrypt.c @@ -583,7 +583,7 @@ composite_pgp_kem_decrypt (ctrl_t ctrl, const char *desc_text, gcry_buffer_t fixed_info = { 0, 0, 0, NULL }; err = agent_key_from_file (ctrl, NULL, desc_text, - ctrl->keygrip, &shadow_info0, + NULL, &shadow_info0, CACHE_MODE_NORMAL, NULL, &s_skey0, NULL, NULL); if (err && gpg_err_code (err) != GPG_ERR_NO_SECKEY) { |