[winpr,crypto] Fix compilation with mbedTLS
This commit is contained in:
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++;
|
||||
|
Loading…
Reference in New Issue
Block a user