Commit 2fa31ba4 authored by steven_carr's avatar steven_carr

Permit auth.c to test major version

parent 52fb63d5
...@@ -629,6 +629,7 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl) ...@@ -629,6 +629,7 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl)
* maintaining RFB version compatibility across multiple servers is a pain * maintaining RFB version compatibility across multiple servers is a pain
* Should use something like ServerIdentity encoding * Should use something like ServerIdentity encoding
*/ */
cl->protocolMajorVersion = major_;
cl->protocolMinorVersion = minor_; cl->protocolMinorVersion = minor_;
rfbLog("Protocol version sent %d.%d, using %d.%d\n", rfbLog("Protocol version sent %d.%d, using %d.%d\n",
......
...@@ -421,6 +421,7 @@ typedef struct _rfbClientRec { ...@@ -421,6 +421,7 @@ typedef struct _rfbClientRec {
char *host; char *host;
/* RFB protocol minor version number */ /* RFB protocol minor version number */
int protocolMajorVersion;
int protocolMinorVersion; int protocolMinorVersion;
#ifdef LIBVNCSERVER_HAVE_LIBPTHREAD #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment