diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-07-09 00:42:36 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 00:42:36 +0300 | 
| commit | f56ef28ccf168b5f9d42a9d405924ca604326ff7 (patch) | |
| tree | 13b45d4c6f677c50721036c637b56f21e7cd2c64 /indra/newview/llsechandler_basic.cpp | |
| parent | 94a66b558401c77953c990a992a91c7b32493f82 (diff) | |
| parent | 9fdca96f8bd2211a99fe88e57b70cbecefa20b6d (diff) | |
Merge pull request #1944 from Ansariel/develop_c4244
Re-enable compiler warnings C4244 and C4396 except for lltracerecording.h and llunittype.h for now
Diffstat (limited to 'indra/newview/llsechandler_basic.cpp')
| -rw-r--r-- | indra/newview/llsechandler_basic.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp index 2d8a5eaf13..1e50135e89 100644 --- a/indra/newview/llsechandler_basic.cpp +++ b/indra/newview/llsechandler_basic.cpp @@ -901,7 +901,7 @@ void _validateCert(int validation_policy,      if (validation_policy & VALIDATION_POLICY_TIME)      { -        LLDate validation_date(time(NULL)); +        LLDate validation_date((double)time(NULL));          if(validation_params.has(CERT_VALIDATION_DATE))          {              validation_date = validation_params[CERT_VALIDATION_DATE]; @@ -1111,7 +1111,7 @@ void LLBasicCertificateStore::validate(int validation_policy,              }              else              { -                validation_date = LLDate(time(NULL)); // current time +                validation_date = LLDate((double)time(NULL)); // current time              }              if((validation_date < cache_entry->second.first) || @@ -1358,8 +1358,8 @@ void LLSecAPIBasicHandler::_readProtectedData(unsigned char *unique_id, U32 id_l              protected_data_stream.read((char *)buffer, BUFFER_READ_SIZE);              EVP_DecryptUpdate(ctx, decrypted_buffer, &decrypted_length, -                              buffer, protected_data_stream.gcount()); -            decrypted_data.append((const char *)decrypted_buffer, protected_data_stream.gcount()); +                              buffer, (int)protected_data_stream.gcount()); +            decrypted_data.append((const char *)decrypted_buffer, (int)protected_data_stream.gcount());          }          // RC4 is a stream cipher, so we don't bother to EVP_DecryptFinal, as there is @@ -1447,7 +1447,7 @@ void LLSecAPIBasicHandler::_writeProtectedData()              }              int encrypted_length;              EVP_EncryptUpdate(ctx, encrypted_buffer, &encrypted_length, -                          buffer, formatted_data_istream.gcount()); +                          buffer, (int)formatted_data_istream.gcount());              protected_data_stream.write((const char *)encrypted_buffer, encrypted_length);          } | 
