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/CSecurityVeNCrypt.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/CSecurityVeNCrypt.cxx')
-rw-r--r-- | common/rfb/CSecurityVeNCrypt.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 046cd8d0..59be49a0 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -86,7 +86,8 @@ bool CSecurityVeNCrypt::processMsg() } /* major version in upper 8 bits and minor version in lower 8 bits */ - U16 Version = (((U16) majorVersion) << 8) | ((U16) minorVersion); + uint16_t Version = (((uint16_t) majorVersion) << 8) | + ((uint16_t) minorVersion); if (!haveSentVersion) { /* Currently we don't support former VeNCrypt 0.1 */ @@ -131,7 +132,7 @@ bool CSecurityVeNCrypt::processMsg() if (!nAvailableTypes) throw AuthFailureException("The server reported no VeNCrypt sub-types"); - availableTypes = new rdr::U32[nAvailableTypes]; + availableTypes = new uint32_t[nAvailableTypes]; haveNumberOfTypes = true; } @@ -154,9 +155,9 @@ bool CSecurityVeNCrypt::processMsg() /* make a choice and send it to the server, meanwhile set up the stack */ if (!haveChosenType) { chosenType = secTypeInvalid; - U8 i; - list<U32>::iterator j; - list<U32> secTypes; + uint8_t i; + list<uint32_t>::iterator j; + list<uint32_t> secTypes; secTypes = security->GetEnabledExtSecTypes(); |