aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-scd.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-07-29 06:15:43 +0000
committerNIIBE Yutaka <[email protected]>2025-07-29 06:15:43 +0000
commitfe62b4b00bc6b396be12561f66997a4a80cb12d2 (patch)
tree83a42fed684e31b7dc7c325514709005fea34e06 /agent/call-scd.c
parentPost release updates (diff)
downloadgnupg-fe62b4b00bc6b396be12561f66997a4a80cb12d2.tar.gz
gnupg-fe62b4b00bc6b396be12561f66997a4a80cb12d2.zip
agent: Fix for smartcard decryption, checking compressed format.
* agent/agent.h (agent_card_pkdecrypt): Fix the type of R_BUF. * agent/call-scd.c (agent_card_pkdecrypt): Likewise. * agent/divert-scd.c (divert_pkdecrypt): Follow the change. * agent/divert-scd.c (agent_card_ecc_kem): The prefix may be 0x02 or 0x03 depending on hidden y-coordinate. -- Fixes-commit: 4ad08a8998fa16f8329fb57b0a47fe7a9b973700 GnuPG-bug-id: 7709 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/call-scd.c')
-rw-r--r--agent/call-scd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-scd.c b/agent/call-scd.c
index 28669206c..f47deb83e 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -609,7 +609,7 @@ agent_card_pkdecrypt (ctrl_t ctrl,
void *getpin_cb_arg,
const char *desc_text,
const unsigned char *indata, size_t indatalen,
- char **r_buf, size_t *r_buflen, int *r_padding)
+ unsigned char **r_buf, size_t *r_buflen, int *r_padding)
{
int rc;
char line[ASSUAN_LINELENGTH];