mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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:
3
deps/ntlmclient/crypt_commoncrypto.c
vendored
3
deps/ntlmclient/crypt_commoncrypto.c
vendored
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user