From 45a11327f3bd6e54b8cbb25460547d4556df0bc9 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 14 May 2025 11:41:31 +0900 Subject: 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 --- agent/pkdecrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'agent/pkdecrypt.c') 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) { -- cgit v1.2.3