diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-06-08 19:58:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-08 19:58:37 +1000 |
| commit | b7fba95cdfe10112d5ba92bee2c4c655ff7afa13 (patch) | |
| tree | cfbda701e10ab8dd0d6e6f7eae5d9b7581c39b89 /Source/Core/Common | |
| parent | f75b254d4f31e7c7b3c96f0ac6d9c8c220e2e425 (diff) | |
| parent | 55128768422710ee78c94b45262d6825479fb484 (diff) | |
Merge pull request #8166 from lioncash/mbedtls
Externals: Update mbedTLS from 2.1.1 to 2.16.1
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/MD5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/MD5.cpp b/Source/Core/Common/MD5.cpp index 5809fffcba..1020b51e57 100644 --- a/Source/Core/Common/MD5.cpp +++ b/Source/Core/Common/MD5.cpp @@ -23,7 +23,7 @@ std::string MD5Sum(const std::string& file_path, std::function<bool(int)> report std::unique_ptr<DiscIO::BlobReader> file(DiscIO::CreateBlobReader(file_path)); u64 game_size = file->GetDataSize(); - mbedtls_md5_starts(&ctx); + mbedtls_md5_starts_ret(&ctx); while (read_offset < game_size) { @@ -31,7 +31,7 @@ std::string MD5Sum(const std::string& file_path, std::function<bool(int)> report if (!file->Read(read_offset, read_size, data.data())) return output_string; - mbedtls_md5_update(&ctx, data.data(), read_size); + mbedtls_md5_update_ret(&ctx, data.data(), read_size); read_offset += read_size; int progress = @@ -41,7 +41,7 @@ std::string MD5Sum(const std::string& file_path, std::function<bool(int)> report } std::array<u8, 16> output; - mbedtls_md5_finish(&ctx, output.data()); + mbedtls_md5_finish_ret(&ctx, output.data()); // Convert to hex for (u8 n : output) |
