diff options
Diffstat (limited to 'common/rfb/CSecurityVncAuth.cxx')
-rw-r--r-- | common/rfb/CSecurityVncAuth.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/CSecurityVncAuth.cxx b/common/rfb/CSecurityVncAuth.cxx index a899b5e7..41eb5484 100644 --- a/common/rfb/CSecurityVncAuth.cxx +++ b/common/rfb/CSecurityVncAuth.cxx @@ -53,13 +53,13 @@ bool CSecurityVncAuth::processMsg() return false; // Read the challenge & obtain the user's password - rdr::U8 challenge[vncAuthChallengeSize]; + uint8_t challenge[vncAuthChallengeSize]; is->readBytes(challenge, vncAuthChallengeSize); PlainPasswd passwd; (CSecurity::upg)->getUserPasswd(cc->isSecure(), 0, &passwd.buf); // Calculate the correct response - rdr::U8 key[8]; + uint8_t key[8]; int pwdLen = strlen(passwd.buf); for (int i=0; i<8; i++) key[i] = i<pwdLen ? passwd.buf[i] : 0; |