FreeRDP
libfreerdp/core/redirection.h
1 
20 #ifndef FREERDP_LIB_CORE_REDIRECTION_H
21 #define FREERDP_LIB_CORE_REDIRECTION_H
22 
23 typedef struct rdp_redirection rdpRedirection;
24 
25 #include "rdp.h"
26 
27 #include <freerdp/freerdp.h>
28 #include <freerdp/log.h>
29 #include <freerdp/api.h>
30 
31 #include <winpr/wlog.h>
32 #include <winpr/stream.h>
33 
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
38 
39 FREERDP_LOCAL int rdp_redirection_apply_settings(rdpRdp* rdp);
40 
41 FREERDP_LOCAL state_run_t rdp_recv_enhanced_security_redirection_packet(rdpRdp* rdp, wStream* s);
42 FREERDP_LOCAL BOOL
43 rdp_write_enhanced_security_redirection_packet(wStream* s, const rdpRedirection* redirection);
44 
45 FREERDP_LOCAL BOOL rdp_redirection_read_target_cert(rdpCertificate** ptargetCertificate,
46  const BYTE* data, size_t length);
47 
48 #define REDIR_TAG FREERDP_TAG("core.redirection")
49 #ifdef WITH_DEBUG_REDIR
50 #define DEBUG_REDIR(...) WLog_DBG(REDIR_TAG, __VA_ARGS__)
51 #else
52 #define DEBUG_REDIR(...) \
53  do \
54  { \
55  } while (0)
56 #endif
57 
58 #endif /* FREERDP_LIB_CORE_REDIRECTION_H */