summaryrefslogtreecommitdiffstats
path: root/sesman/scp_v0.c
diff options
context:
space:
mode:
authorilsimo <ilsimo>2008-07-30 10:58:30 +0000
committerilsimo <ilsimo>2008-07-30 10:58:30 +0000
commitd14b076a700e1ad87048549945f0f1e658db6cd5 (patch)
treecba23a5e8d2175796912e738164c26da4ce345b6 /sesman/scp_v0.c
parenta8a2f0a0b0749fa0d7376d2322b05f3984356e29 (diff)
downloadxrdp-proprietary-d14b076a700e1ad87048549945f0f1e658db6cd5.tar.gz
xrdp-proprietary-d14b076a700e1ad87048549945f0f1e658db6cd5.zip
still more work on logging
libscp makefile fix
Diffstat (limited to 'sesman/scp_v0.c')
-rw-r--r--sesman/scp_v0.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c
index 92856789..e006ad33 100644
--- a/sesman/scp_v0.c
+++ b/sesman/scp_v0.c
@@ -22,15 +22,15 @@
* @file scp_v0.c
* @brief scp version 0 implementation
* @author Jay Sorg, Simone Fedele
- *
+ *
*/
#include "sesman.h"
-extern struct config_sesman g_cfg;
+extern struct config_sesman* g_cfg;
/******************************************************************************/
-void DEFAULT_CC
+void DEFAULT_CC
scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
{
int display = 0;
@@ -50,19 +50,19 @@ scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
}
else
{
- g_printf("pre auth");
+ LOG_DBG(&(g_cfg->log), "pre auth");
if (1 == access_login_allowed(s->username))
{
- log_message(&(g_cfg.log), LOG_LEVEL_INFO, "granted TS access to user %s", s->username);
+ log_message(&(g_cfg->log), LOG_LEVEL_INFO, "granted TS access to user %s", s->username);
if (SCP_SESSION_TYPE_XVNC == s->type)
{
- log_message(&(g_cfg.log), LOG_LEVEL_INFO, "starting Xvnc session...");
+ log_message(&(g_cfg->log), LOG_LEVEL_INFO, "starting Xvnc session...");
display = session_start(s->width, s->height, s->bpp, s->username, s->password,
data, SESMAN_SESSION_TYPE_XVNC);
}
else
{
- log_message(&(g_cfg.log), LOG_LEVEL_INFO, "starting X11rdp session...");
+ log_message(&(g_cfg->log), LOG_LEVEL_INFO, "starting X11rdp session...");
display = session_start(s->width, s->height, s->bpp, s->username, s->password,
data, SESMAN_SESSION_TYPE_XRDP);
}