smartcard: Update redirector smartcard capability

Only announce a smartcard capability in the redirector if we can
support it.
This commit is contained in:
matt335672
2026-03-13 11:45:16 +00:00
parent 7a2ac0c177
commit 57609d4aa7
+2
View File
@@ -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);