summaryrefslogtreecommitdiffstats
path: root/common/rfb/CSecurityVncAuth.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/CSecurityVncAuth.cxx')
-rw-r--r--common/rfb/CSecurityVncAuth.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/common/rfb/CSecurityVncAuth.cxx b/common/rfb/CSecurityVncAuth.cxx
index ba5a30b7..5b53c60b 100644
--- a/common/rfb/CSecurityVncAuth.cxx
+++ b/common/rfb/CSecurityVncAuth.cxx
@@ -24,10 +24,10 @@
#include <string.h>
#include <stdio.h>
#include <rfb/CConnection.h>
-#include <rfb/UserPasswdGetter.h>
#include <rfb/Password.h>
#include <rfb/CSecurityVncAuth.h>
#include <rfb/util.h>
+#include <rfb/Security.h>
extern "C" {
#include <rfb/d3des.h>
}
@@ -37,16 +37,6 @@ using namespace rfb;
static const int vncAuthChallengeSize = 16;
-
-CSecurityVncAuth::CSecurityVncAuth(UserPasswdGetter* upg_)
- : upg(upg_)
-{
-}
-
-CSecurityVncAuth::~CSecurityVncAuth()
-{
-}
-
bool CSecurityVncAuth::processMsg(CConnection* cc)
{
rdr::InStream* is = cc->getInStream();
@@ -56,7 +46,7 @@ bool CSecurityVncAuth::processMsg(CConnection* cc)
rdr::U8 challenge[vncAuthChallengeSize];
is->readBytes(challenge, vncAuthChallengeSize);
PlainPasswd passwd;
- upg->getUserPasswd(0, &passwd.buf);
+ (CSecurity::upg)->getUserPasswd(0, &passwd.buf);
// Calculate the correct response
rdr::U8 key[8];