mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Fix various compiler warnings and update OpenSSL hash functions (#119)
* Update OpenSSL hash functions to OpenSSL 3.0 * Fix invalid sscanf format in DownloadManager * Fix unset return value warning * Fix erroneous check on otpMem in iosu_crypto
This commit is contained in:
parent
86c0a8f698
commit
2d42c885da
13 changed files with 79 additions and 114 deletions
|
@ -562,9 +562,9 @@ void makePWHash(uint8* input, sint32 length, uint32 magic, uint8* output)
|
|||
buffer[2] = (magic >> 16) & 0xFF;
|
||||
buffer[3] = (magic >> 24) & 0xFF;
|
||||
memcpy(buffer + 8, input, length);
|
||||
uint8 md[32];
|
||||
uint8 md[SHA256_DIGEST_LENGTH];
|
||||
SHA256(buffer, 8 + length, md);
|
||||
memcpy(output, md, 32);
|
||||
memcpy(output, md, SHA256_DIGEST_LENGTH);
|
||||
}
|
||||
|
||||
void actPwTest()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue