summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_sec.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-08-03 15:47:26 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-08-03 15:47:26 -0700
commit474d17d556d1f056b4055643a6a897483100dd7e (patch)
tree5291b88cfd11898abd6ccc1637777350635806da /libxrdp/xrdp_sec.c
parent9c237d1cc6ab6d741eb945f5296d7f9c5cc11c79 (diff)
downloadxrdp-proprietary-474d17d556d1f056b4055643a6a897483100dd7e.tar.gz
xrdp-proprietary-474d17d556d1f056b4055643a6a897483100dd7e.zip
xrdp: added support for forcing credentials on command line
Diffstat (limited to 'libxrdp/xrdp_sec.c')
-rw-r--r--libxrdp/xrdp_sec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index 54d5d0de..726fcde4 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -451,6 +451,8 @@ xrdp_sec_process_logon_info(struct xrdp_sec *self, struct stream *s)
else
{
in_uint8s(s, len_password + 2);
+ if (self->rdp_layer->client_info.require_credentials)
+ return 1; /* credentials on cmd line is mandatory */
}
unicode_in(s, len_program, self->rdp_layer->client_info.program, 255);