- else if(ntlmGen->mWhich & NW_NTLM1) {
- /*
- * LM response - the old style 2-DES "password hash" applied
- * the the server's challenge
- */
-// ortn = lmPasswordHash(password, pwdHash);
-// if(ortn) {
-// dprintf("***Error on lmPasswordHash\n");
-// goto errOut;
-// }
- memmove(pwdHash, CFDataGetBytePtr(lmHash), sizeof(pwdHash));
-
- ortn = ntlmResponse(pwdHash, serverChallenge, lmResp);
- if(ortn) {
- dprintf("***Error on ntlmResponse (1)\n");
- goto errOut;
- }
-
- /*
- * NTLM response: md4 password hash, DES with three different keys
- */
-// ntlmPasswordHash(password, pwdHash);
- memmove(pwdHash, CFDataGetBytePtr(ntlmHash), sizeof(pwdHash));
-
- ortn = ntlmResponse(pwdHash, serverChallenge, ntlmResp);
- if(ortn) {
- dprintf("***Error on ntlmResponse (2)\n");
- goto errOut;
- }
- ntlmGen->mNegotiatedVersion = NW_NTLM1;
- }