smartcard: Update redirector smartcard capability
Only announce a smartcard capability in the redirector if we can support it.
This commit is contained in:
@@ -528,10 +528,12 @@ devredir_send_server_core_cap_req(void)
|
|||||||
/* the header */
|
/* the header */
|
||||||
xstream_wr_u32_le(s, 2); /* Version */
|
xstream_wr_u32_le(s, 2); /* Version */
|
||||||
|
|
||||||
|
#ifdef XRDP_SMARTCARD
|
||||||
/* setup smart card capability */
|
/* setup smart card capability */
|
||||||
xstream_wr_u16_le(s, CAP_SMARTCARD_TYPE);
|
xstream_wr_u16_le(s, CAP_SMARTCARD_TYPE);
|
||||||
xstream_wr_u16_le(s, 8);
|
xstream_wr_u16_le(s, 8);
|
||||||
xstream_wr_u32_le(s, 1);
|
xstream_wr_u32_le(s, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* send to client */
|
/* send to client */
|
||||||
bytes = xstream_len(s);
|
bytes = xstream_len(s);
|
||||||
|
|||||||
Reference in New Issue
Block a user