From 55128768422710ee78c94b45262d6825479fb484 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Jun 2019 20:57:02 -0400 Subject: General: Migrate from deprecated mbedTLS functions As indicated by mbedTLS' documentation, all of the relevant functions have been superseded by _ret-suffixed variants in mbedTLS version 2.7.0. --- Source/Core/Common/MD5.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/MD5.cpp') 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 report std::unique_ptr 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 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 report } std::array output; - mbedtls_md5_finish(&ctx, output.data()); + mbedtls_md5_finish_ret(&ctx, output.data()); // Convert to hex for (u8 n : output) -- cgit v1.2.3