Displaying 2 results from an estimated 2 matches for "lm_hash_size".
2004 Aug 30
0
[PATCH] NTLM fixes
...signed char *hash,
- const unsigned char *challenge,
- unsigned char *response)
-{
- deshash(response, hash, challenge);
- deshash(response + 8, hash + 7, challenge);
- deshash(response + 16, hash + 14, challenge);
-}
-
const unsigned char *
lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE])
{
@@ -112,7 +102,11 @@ ntlmssp_v1_response(const unsigned char
memset(des_hash + NTLMSSP_HASH_SIZE, 0,
sizeof(des_hash) - NTLMSSP_HASH_SIZE);
- ntlmssp_des_encrypt_triad(des_hash, challenge, response);
+ deshash(response, des_hash, challenge);
+ deshash(response + 8, des_hash + 7,...
2004 Nov 10
0
[PATCH] NTLM update and crashfix
...th/mech-ntlm.c 2004-10-22 17:32:27.000000000 +0400
+++ dovecot-1.0-test52/src/auth/mech-ntlm.c 2004-11-10 16:45:53.000000000 +0300
@@ -42,10 +42,15 @@ lm_credentials_callback(const char *cred
const unsigned char *client_response;
unsigned char lm_response[LM_RESPONSE_SIZE];
unsigned char hash[LM_HASH_SIZE];
+ unsigned int response_length;
buffer_t *hash_buffer;
int ret;
- if (credentials == NULL) {
+ response_length =
+ ntlmssp_buffer_length(request->response, lm_response);
+ client_response = ntlmssp_buffer_data(request->response, lm_response);
+
+ if ((credentials == NULL) || (respons...