diff options
Diffstat (limited to 'common/rfb/SSecurityVncAuth.h')
-rw-r--r-- | common/rfb/SSecurityVncAuth.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/rfb/SSecurityVncAuth.h b/common/rfb/SSecurityVncAuth.h index 94d5aaf2..2bd27791 100644 --- a/common/rfb/SSecurityVncAuth.h +++ b/common/rfb/SSecurityVncAuth.h @@ -24,11 +24,11 @@ #ifndef __RFB_SSECURITYVNCAUTH_H__ #define __RFB_SSECURITYVNCAUTH_H__ +#include <stdint.h> + #include <rfb/Configuration.h> -#include <rfb/Password.h> #include <rfb/SSecurity.h> #include <rfb/Security.h> -#include <rdr/types.h> namespace rfb { @@ -36,7 +36,7 @@ namespace rfb { public: // getVncAuthPasswd() fills buffer of given password and readOnlyPassword. // If there was no read only password in the file, readOnlyPassword buffer is null. - virtual void getVncAuthPasswd(PlainPasswd *password, PlainPasswd *readOnlyPassword)=0; + virtual void getVncAuthPasswd(std::string *password, std::string *readOnlyPassword)=0; virtual ~VncAuthPasswdGetter() { } }; @@ -44,7 +44,7 @@ namespace rfb { class VncAuthPasswdParameter : public VncAuthPasswdGetter, BinaryParameter { public: VncAuthPasswdParameter(const char* name, const char* desc, StringParameter* passwdFile_); - virtual void getVncAuthPasswd(PlainPasswd *password, PlainPasswd *readOnlyPassword); + virtual void getVncAuthPasswd(std::string *password, std::string *readOnlyPassword); protected: StringParameter* passwdFile; }; @@ -59,10 +59,10 @@ namespace rfb { static StringParameter vncAuthPasswdFile; static VncAuthPasswdParameter vncAuthPasswd; private: - bool verifyResponse(const PlainPasswd &password); + bool verifyResponse(const char* password); enum {vncAuthChallengeSize = 16}; - rdr::U8 challenge[vncAuthChallengeSize]; - rdr::U8 response[vncAuthChallengeSize]; + uint8_t challenge[vncAuthChallengeSize]; + uint8_t response[vncAuthChallengeSize]; bool sentChallenge; VncAuthPasswdGetter* pg; SConnection::AccessRights accessRights; |