From 57609d4aa7eeba7c446d10b2aee1fc670a3e954d Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Fri, 13 Mar 2026 11:45:16 +0000 Subject: [PATCH] smartcard: Update redirector smartcard capability Only announce a smartcard capability in the redirector if we can support it. --- sesman/chansrv/devredir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c index ad68f4f5..2a091fe2 100644 --- a/sesman/chansrv/devredir.c +++ b/sesman/chansrv/devredir.c @@ -528,10 +528,12 @@ devredir_send_server_core_cap_req(void) /* the header */ xstream_wr_u32_le(s, 2); /* Version */ +#ifdef XRDP_SMARTCARD /* setup smart card capability */ xstream_wr_u16_le(s, CAP_SMARTCARD_TYPE); xstream_wr_u16_le(s, 8); xstream_wr_u32_le(s, 1); +#endif /* send to client */ bytes = xstream_len(s);