mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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:
parent
fecae3493c
commit
17aa4afba3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue