ソースを参照

[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
4個のファイルの変更12行の追加11行の削除
  1. 3
    3
      common/rfb/CSecurityTLS.cxx
  2. 3
    3
      common/rfb/CSecurityTLS.h
  3. 3
    2
      common/rfb/CSecurityTLSBase.cxx
  4. 3
    3
      common/rfb/CSecurityTLSBase.h

+ 3
- 3
common/rfb/CSecurityTLS.cxx ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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

読み込み中…
キャンセル
保存