ntlmclient: update to latest version

Ensure that we declare variables at the top of the block for broad
compatibility with old compilers.
This commit is contained in:
Edward Thomson
2023-12-14 13:40:20 +00:00
parent 2dbc810a54
commit 4681b3aee4

View File

@@ -59,11 +59,12 @@ bool ntlm_des_encrypt(
ntlm_des_block *plaintext,
ntlm_des_block *key)
{
CCCryptorStatus result;
size_t written;
NTLM_UNUSED(ntlm);
CCCryptorStatus result = CCCrypt(kCCEncrypt,
result = CCCrypt(kCCEncrypt,
kCCAlgorithmDES, kCCOptionECBMode,
key, sizeof(ntlm_des_block), NULL,
plaintext, sizeof(ntlm_des_block),