Переглянути джерело

[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 роки тому
джерело
коміт
4395823664

+ 3
- 3
common/rfb/CSecurityTLS.cxx Переглянути файл

#include <config.h> #include <config.h>
#endif #endif


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


#include <rfb/CSecurityTLS.h> #include <rfb/CSecurityTLS.h>



using namespace rfb; using namespace rfb;


CSecurityTLS::CSecurityTLS() : anon_cred(0) CSecurityTLS::CSecurityTLS() : anon_cred(0)


} }


#endif /* HAVE_GNUTLS */

+ 3
- 3
common/rfb/CSecurityTLS.h Переглянути файл

#include <config.h> #include <config.h>
#endif #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/CSecurityTLSBase.h>
#include <rfb/SSecurityVeNCrypt.h> #include <rfb/SSecurityVeNCrypt.h>
}; };
} }
#endif /* HAVE_GNUTLS */
#endif /* __C_SECURITY_TLS_H__ */ #endif /* __C_SECURITY_TLS_H__ */

+ 3
- 2
common/rfb/CSecurityTLSBase.cxx Переглянути файл

#include <config.h> #include <config.h>
#endif #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/CSecurityTLSBase.h>
#include <rfb/CConnection.h> #include <rfb/CConnection.h>
return true; return true;
} }


#endif /* HAVE_GNUTLS */

+ 3
- 3
common/rfb/CSecurityTLSBase.h Переглянути файл

#include <config.h> #include <config.h>
#endif #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/CSecurity.h>
#include <rfb/Security.h> #include <rfb/Security.h>
}; };
} }
#endif /* HAVE_GNUTLS */
#endif #endif

Завантаження…
Відмінити
Зберегти