21#ifndef FREERDP_SERVER_PROXY_SCARD_H
22#define FREERDP_SERVER_PROXY_SCARD_H
24#include <winpr/wlog.h>
25#include <freerdp/server/proxy/proxy_context.h>
27typedef UINT (*pf_scard_send_fkt_t)(wLog* log, pClientContext*,
wStream*);
29WINPR_ATTR_NODISCARD BOOL pf_channel_smartcard_client_new(pClientContext* pc);
30void pf_channel_smartcard_client_free(pClientContext* pc);
32BOOL pf_channel_smartcard_client_reset(pClientContext* pc);
33WINPR_ATTR_NODISCARD BOOL pf_channel_smartcard_client_emulate(pClientContext* pc);
35WINPR_ATTR_NODISCARD BOOL pf_channel_smartcard_client_handle(wLog* log, pClientContext* pc,
37 pf_scard_send_fkt_t fkt);
38WINPR_ATTR_NODISCARD BOOL pf_channel_smartcard_server_handle(pServerContext* ps,
wStream* s);