summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-10-07 11:01:55 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-02 16:10:59 +0100
commit29990f0090754c722653aafd3fc6800cebc1584c (patch)
tree891066286999828e6170cddde6bc8bdaaae98496 /libvncserver
parent95ae56c83110c35bce9752d18975b6edcd8088b9 (diff)
downloadlibtdevnc-29990f0090754c722653aafd3fc6800cebc1584c.tar.gz
libtdevnc-29990f0090754c722653aafd3fc6800cebc1584c.zip
Add MSLogon security type
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncserver')
-rw-r--r--libvncserver/vncauth.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libvncserver/vncauth.c b/libvncserver/vncauth.c
index b8ee288..0b73531 100644
--- a/libvncserver/vncauth.c
+++ b/libvncserver/vncauth.c
@@ -191,3 +191,18 @@ rfbEncryptBytes(unsigned char *bytes, char *passwd)
rfbDes(bytes+i, bytes+i);
}
}
+
+void
+rfbEncryptBytes2(unsigned char *where, const int length, unsigned char *key) {
+ int i, j;
+ rfbDesKey(key, EN0);
+ for (i = 0; i< 8; i++)
+ where[i] ^= key[i];
+ rfbDes(where, where);
+ for (i = 8; i < length; i += 8) {
+ for (j = 0; j < 8; j++)
+ where[i + j] ^= where[i + j - 8];
+ rfbDes(where + i, where + i);
+ }
+}
+