Browse Source

[Bugfix] Add "#error" directives to client-side TLS sources to avoid wrong usage.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4104 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.0.90
Adam Tkac 14 years ago
parent
commit
4395823664

+ 3
- 3
common/rfb/CSecurityTLS.cxx View File

@@ -23,11 +23,12 @@
#include <config.h>
#endif

#ifdef HAVE_GNUTLS
#ifndef HAVE_GNUTLS
#error "This source should not be compiled without HAVE_GNUTLS defined"
#endif

#include <rfb/CSecurityTLS.h>


using namespace rfb;

CSecurityTLS::CSecurityTLS() : anon_cred(0)
@@ -63,4 +64,3 @@ void CSecurityTLS::checkSession(gnutls_session session)

}

#endif /* HAVE_GNUTLS */

+ 3
- 3
common/rfb/CSecurityTLS.h View File

@@ -26,7 +26,9 @@
#include <config.h>
#endif
#ifdef HAVE_GNUTLS
#ifndef HAVE_GNUTLS
#error "This header should not be included without HAVE_GNUTLS defined"
#endif
#include <rfb/CSecurityTLSBase.h>
#include <rfb/SSecurityVeNCrypt.h>
@@ -48,6 +50,4 @@ namespace rfb {
};
}
#endif /* HAVE_GNUTLS */
#endif /* __C_SECURITY_TLS_H__ */

+ 3
- 2
common/rfb/CSecurityTLSBase.cxx View File

@@ -23,7 +23,9 @@
#include <config.h>
#endif

#ifdef HAVE_GNUTLS
#ifndef HAVE_GNUTLS
#error "This header should not be compiled without HAVE_GNUTLS defined"
#endif

#include <rfb/CSecurityTLSBase.h>
#include <rfb/CConnection.h>
@@ -136,4 +138,3 @@ bool CSecurityTLSBase::processMsg(CConnection* cc)
return true;
}

#endif /* HAVE_GNUTLS */

+ 3
- 3
common/rfb/CSecurityTLSBase.h View File

@@ -26,7 +26,9 @@
#include <config.h>
#endif
#ifdef HAVE_GNUTLS
#ifndef HAVE_GNUTLS
#error "This header should not be compiled without HAVE_GNUTLS defined"
#endif
#include <rfb/CSecurity.h>
#include <rfb/Security.h>
@@ -57,6 +59,4 @@ namespace rfb {
};
}
#endif /* HAVE_GNUTLS */
#endif

Loading…
Cancel
Save