20 #ifndef FREERDP_LIB_CORE_REDIRECTION_H
21 #define FREERDP_LIB_CORE_REDIRECTION_H
23 typedef struct rdp_redirection rdpRedirection;
27 #include <freerdp/freerdp.h>
28 #include <freerdp/log.h>
29 #include <freerdp/api.h>
31 #include <winpr/wlog.h>
32 #include <winpr/stream.h>
34 #define CERT_cert_file_element 32
35 #define CERT_crl_file_element 33
36 #define CERT_ctl_file_element 34
37 #define CERT_keyid_file_element 35
39 FREERDP_LOCAL
int rdp_redirection_apply_settings(rdpRdp* rdp);
41 FREERDP_LOCAL state_run_t rdp_recv_enhanced_security_redirection_packet(rdpRdp* rdp,
wStream* s);
43 rdp_write_enhanced_security_redirection_packet(
wStream* s,
const rdpRedirection* redirection);
45 FREERDP_LOCAL BOOL rdp_redirection_read_target_cert(rdpCertificate** ptargetCertificate,
46 const BYTE* data,
size_t length);
48 #define REDIR_TAG FREERDP_TAG("core.redirection")
49 #ifdef WITH_DEBUG_REDIR
50 #define DEBUG_REDIR(...) WLog_DBG(REDIR_TAG, __VA_ARGS__)
52 #define DEBUG_REDIR(...) \