diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-09-10 13:19:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-01 21:17:12 +0100 |
commit | 6881c895ab317bd302addac5f228b7367136017f (patch) | |
tree | 18d1119f59209147d97e873c3dbc9be36e429aaf /common/rfb/CSecurityVncAuth.cxx | |
parent | baca73d03217a1c219d9c4f024ffcd39f85fd322 (diff) | |
download | tigervnc-6881c895ab317bd302addac5f228b7367136017f.tar.gz tigervnc-6881c895ab317bd302addac5f228b7367136017f.zip |
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
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; |