[winpr,crypto] Fix compilation with mbedTLS

This commit is contained in:
Richard Markiewicz 2023-08-01 10:48:58 -04:00 committed by akallabeth
parent a16c4efb98
commit cd06e7179a

View File

@ -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++;