\r
static LogWriter vlog("CVeNCrypt");\r
\r
-CSecurityVeNCrypt::CSecurityVeNCrypt(void) : csecurity(NULL)\r
+CSecurityVeNCrypt::CSecurityVeNCrypt(Security* sec) : csecurity(NULL), security(sec)\r
{\r
haveRecvdMajorVersion = false;\r
haveRecvdMinorVersion = false;\r
class CSecurityVeNCrypt : public CSecurity {\r
public:\r
\r
- CSecurityVeNCrypt(void);\r
+ CSecurityVeNCrypt(Security* sec);\r
~CSecurityVeNCrypt();\r
virtual bool processMsg(CConnection* cc);// { return true; }\r
int getType() const {return chosenType;}\r
static CSecurityStack* getCSecurityStack(int secType);\r
\r
CSecurity *csecurity;\r
+ Security *security;\r
bool haveRecvdMajorVersion;\r
bool haveRecvdMinorVersion;\r
bool haveSentVersion;\r
"TLSVnc, TLSPlain, X509None, X509Vnc, X509Plain)",\r
"TLSVnc,TLSPlain,X509Vnc,X509Plain");\r
\r
-SSecurityVeNCrypt::SSecurityVeNCrypt(void)\r
+SSecurityVeNCrypt::SSecurityVeNCrypt(Security *sec) : security(sec)\r
{\r
ssecurity = NULL;\r
haveSentVersion = false;\r
\r
class SSecurityVeNCrypt : public SSecurity {\r
public:\r
- SSecurityVeNCrypt(void);\r
+ SSecurityVeNCrypt(Security *sec);\r
~SSecurityVeNCrypt();\r
virtual bool processMsg(SConnection* sc);// { return true; }\r
virtual int getType() const { return secTypeVeNCrypt; }\r
static SSecurityStack* getSSecurityStack(int secType);\r
\r
SSecurity *ssecurity;\r
+ Security *security;\r
bool haveSentVersion, haveRecvdMajorVersion, haveRecvdMinorVersion;\r
bool haveSentTypes, haveChosenType;\r
rdr::U8 majorVersion, minorVersion, numTypes;\r
case secTypeNone: return new SSecurityNone();
case secTypeVncAuth: return new SSecurityVncAuth();
#ifdef HAVE_GNUTLS
- case secTypeVeNCrypt: return new SSecurityVeNCrypt();
+ case secTypeVeNCrypt: return new SSecurityVeNCrypt(this);
#endif
}
case secTypeNone: return new CSecurityNone();
case secTypeVncAuth: return new CSecurityVncAuth();
#ifdef HAVE_GNUTLS
- case secTypeVeNCrypt: return new CSecurityVeNCrypt();
+ case secTypeVeNCrypt: return new CSecurityVeNCrypt(this);
#endif
}