Revision: 4266
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4266&view=rev
Author:   dcommander
Date:     2011-02-09 03:27:26 +0000 (Wed, 09 Feb 2011)

Log Message:
-----------
Oops.  Need to wait until after gnutls.h is included before checking the value 
of GNUTLS_VERSION_NUMBER

Modified Paths:
--------------
    trunk/common/rfb/CSecurityTLS.cxx

Modified: trunk/common/rfb/CSecurityTLS.cxx
===================================================================
--- trunk/common/rfb/CSecurityTLS.cxx   2011-02-09 03:10:44 UTC (rev 4265)
+++ trunk/common/rfb/CSecurityTLS.cxx   2011-02-09 03:27:26 UTC (rev 4266)
@@ -28,17 +28,6 @@
 #error "This header should not be compiled without HAVE_GNUTLS defined"
 #endif
 
-#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020708)
-#define GNUTLS_CERT_NOT_ACTIVATED 512
-#define GNUTLS_CERT_EXPIRED 1024
-#endif
-
-#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020301)
-#define GNUTLS_CRT_PRINT_ONELINE 1
-#endif
-
-
-
 #include <stdlib.h>
 #ifndef WIN32
 #include <unistd.h>
@@ -57,6 +46,16 @@
 
 #include <gnutls/x509.h>
 
+#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020708)
+#error here
+#define GNUTLS_CERT_NOT_ACTIVATED 512
+#define GNUTLS_CERT_EXPIRED 1024
+#endif
+
+#if !defined(GNUTLS_VERSION_NUMBER) || (GNUTLS_VERSION_NUMBER < 0x020301)
+#define GNUTLS_CRT_PRINT_ONELINE 1
+#endif
+
 #define TLS_DEBUG
 
 using namespace rfb;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to