diff options
Diffstat (limited to 'common/rfb/Security.cxx')
-rw-r--r-- | common/rfb/Security.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index 37ecc153..6462edcf 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -41,8 +41,7 @@ #ifdef HAVE_GNUTLS #include <rfb/CSecurityTLS.h> #include <rfb/CSecurityX509.h> -#include <rfb/SSecurityTLS.h> -#include <rfb/SSecurityX509.h> +#include <rfb/SSecurityTLSBase.h> #endif #include <rfb/util.h> @@ -125,13 +124,13 @@ SSecurity* Security::GetSSecurity(U32 secType) case secTypeVeNCrypt: return new SSecurityVeNCrypt(this); #ifdef HAVE_GNUTLS case secTypeTLSNone: - return new SSecurityStack(secTypeTLSNone, new SSecurityTLS()); + return new SSecurityStack(secTypeTLSNone, new SSecurityTLSBase(true)); case secTypeTLSVnc: - return new SSecurityStack(secTypeTLSVnc, new SSecurityTLS(), new SSecurityVncAuth()); + return new SSecurityStack(secTypeTLSVnc, new SSecurityTLSBase(true), new SSecurityVncAuth()); case secTypeX509None: - return new SSecurityStack(secTypeX509None, new SSecurityX509()); + return new SSecurityStack(secTypeX509None, new SSecurityTLSBase(false)); case secTypeX509Vnc: - return new SSecurityStack(secTypeX509None, new SSecurityX509(), new SSecurityVncAuth()); + return new SSecurityStack(secTypeX509None, new SSecurityTLSBase(false), new SSecurityVncAuth()); #endif } |