summaryrefslogtreecommitdiffstats
path: root/neutrinordp/xrdp-neutrinordp.c
diff options
context:
space:
mode:
Diffstat (limited to 'neutrinordp/xrdp-neutrinordp.c')
-rw-r--r--neutrinordp/xrdp-neutrinordp.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/neutrinordp/xrdp-neutrinordp.c b/neutrinordp/xrdp-neutrinordp.c
index 37b4eefb..b93b5fc0 100644
--- a/neutrinordp/xrdp-neutrinordp.c
+++ b/neutrinordp/xrdp-neutrinordp.c
@@ -1955,6 +1955,28 @@ lfreerdp_verify_certificate(freerdp *instance, char *subject, char *issuer,
}
/******************************************************************************/
+static int DEFAULT_CC
+lfreerdp_session_info(freerdp* instance, uint8* data, int data_bytes)
+{
+ struct mod *mod;
+ int error;
+
+ LLOGLN(10, ("lfreerdp_session_info:"));
+ error = 0;
+ mod = ((struct mod_context *)(instance->context))->modi;
+ if (mod != 0)
+ {
+ LLOGLN(10, ("lfreerdp_session_info: mod->server_session_info %p",
+ mod->server_session_info));
+ if (mod->server_session_info != 0)
+ {
+ error = mod->server_session_info(mod, (char *)data, data_bytes);
+ }
+ }
+ return error;
+}
+
+/******************************************************************************/
tintptr EXPORT_CC
mod_init(void)
{
@@ -1988,6 +2010,11 @@ mod_init(void)
mod->inst->ReceiveChannelData = lfreerdp_receive_channel_data;
mod->inst->Authenticate = lfreerdp_authenticate;
mod->inst->VerifyCertificate = lfreerdp_verify_certificate;
+#if defined(VERSION_STRUCT_RDP_FREERDP)
+#if VERSION_STRUCT_RDP_FREERDP > 0
+ mod->inst->SessionInfo = lfreerdp_session_info;
+#endif
+#endif
freerdp_context_new(mod->inst);