diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-08-12 17:40:51 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-08-12 17:40:51 +0200 |
commit | cdcc5fe9a7894af6075865f698e3d014a6f92335 (patch) | |
tree | ab1b84a09987f8ebe9d1e8450f36375c0f9bc5db /src/PolarSSL++ | |
parent | Merge pull request #2425 from cuberite/APIDumpNameChange (diff) | |
parent | Fix old style casts and implicit conversions (diff) | |
download | cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.gz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.bz2 cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.lz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.xz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.zst cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.zip |
Diffstat (limited to 'src/PolarSSL++')
-rw-r--r-- | src/PolarSSL++/RsaPrivateKey.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PolarSSL++/RsaPrivateKey.cpp b/src/PolarSSL++/RsaPrivateKey.cpp index 2d5a2a4b1..ed94923c2 100644 --- a/src/PolarSSL++/RsaPrivateKey.cpp +++ b/src/PolarSSL++/RsaPrivateKey.cpp @@ -100,7 +100,7 @@ AString cRsaPrivateKey::GetPubKeyDER(void) { return AString(); } - return AString((const char *)(buf + sizeof(buf) - res), (size_t)res); + return AString(reinterpret_cast<const char *>(buf + sizeof(buf) - res), static_cast<size_t>(res)); } @@ -134,7 +134,7 @@ int cRsaPrivateKey::Decrypt(const Byte * a_EncryptedData, size_t a_EncryptedLeng { return -1; } - return (int)DecryptedLength; + return static_cast<int>(DecryptedLength); } @@ -167,7 +167,7 @@ int cRsaPrivateKey::Encrypt(const Byte * a_PlainData, size_t a_PlainLength, Byte { return -1; } - return (int)m_Rsa.len; + return static_cast<int>(m_Rsa.len); } |