mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,crypto] Fix compilation with mbedTLS
This commit is contained in:
committed by
akallabeth
parent
a16c4efb98
commit
cd06e7179a
@@ -822,7 +822,7 @@ int winpr_Cipher_BytesToKey(int cipher, WINPR_MD_TYPE md, const void* salt, cons
|
||||
break;
|
||||
|
||||
if (key)
|
||||
*(key++) = md_buf[i];
|
||||
*(BYTE*)(key++) = md_buf[i];
|
||||
|
||||
nkey--;
|
||||
i++;
|
||||
@@ -840,7 +840,7 @@ int winpr_Cipher_BytesToKey(int cipher, WINPR_MD_TYPE md, const void* salt, cons
|
||||
break;
|
||||
|
||||
if (iv)
|
||||
*(iv++) = md_buf[i];
|
||||
*(BYTE*)(iv++) = md_buf[i];
|
||||
|
||||
niv--;
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user