[pve-devel] r5404 - vncterm/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jan 20 11:41:19 CET 2011


Author: dietmar
Date: 2011-01-20 11:41:19 +0100 (Thu, 20 Jan 2011)
New Revision: 5404

Added:
   vncterm/pve2/LibVNCServer-0.9.7.tar.gz
Modified:
   vncterm/pve2/vncterm.c
Log:
we need to patch LibVNCServer for tls support


Added: vncterm/pve2/LibVNCServer-0.9.7.tar.gz
===================================================================
(Binary files differ)


Property changes on: vncterm/pve2/LibVNCServer-0.9.7.tar.gz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: vncterm/pve2/vncterm.c
===================================================================
--- vncterm/pve2/vncterm.c	2011-01-20 10:12:31 UTC (rev 5403)
+++ vncterm/pve2/vncterm.c	2011-01-20 10:41:19 UTC (rev 5404)
@@ -1,6 +1,6 @@
 /*
  
-     Copyright (C) 2007 Proxmox Server Solutions GmbH
+     Copyright (C) 2007-2011 Proxmox Server Solutions GmbH
  
      Copyright: vzdump is under GNU GPL, the GNU General Public License.
  
@@ -40,6 +40,23 @@
 /* define this for debugging */
 //#define DEBUG
 
+/* rfb tls security handler */
+
+#define rfbSecTypeVencrypt  19
+#define rfbVencryptTlsPlain 259
+
+static void
+rfbVncAuthVencrypt(rfbClientPtr cl)
+{
+
+}
+
+static rfbSecurityHandler VncSecurityHandlerVencrypt = {
+    rfbSecTypeVencrypt,
+    rfbVncAuthVencrypt,
+    NULL
+};
+
 #define TERM "xterm"
 
 #define TERMIDCODE "[?1;2c" // vt100 ID
@@ -1721,6 +1738,8 @@
 
   //screen->autoPort = 1;
 
+  rfbRegisterSecurityHandler(&VncSecurityHandlerVencrypt);
+
   rfbInitServer(screen);           
 
   return vt;



More information about the pve-devel mailing list