Use only the bit after the ``\'' when hashing the challenge in

MSChapv2

Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
This commit is contained in:
Brian Somers 2000-11-28 22:50:40 +00:00
parent fecae3493c
commit 17aa4afba3

View File

@ -159,7 +159,7 @@ ChallengeHash(char *PeerChallenge, char *AuthenticatorChallenge,
SHA1_Update(&Context, PeerChallenge, 16);
SHA1_Update(&Context, AuthenticatorChallenge, 16);
SHA1_Update(&Context, UserName, UserNameLen);
SHA1_Update(&Context, Name, strlen(Name));
SHA1_Final(Digest, &Context);
memcpy(Challenge, Digest, 8);