diff options
author | Brian Somers <brian@FreeBSD.org> | 2000-11-28 22:50:40 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2000-11-28 22:50:40 +0000 |
commit | 17aa4afba3a897321dc26c82010ef0faacd79dd9 (patch) | |
tree | f14ad89d2e77bf565a9dfcdd089db2af9c95f882 /usr.sbin/ppp/chap_ms.c | |
parent | fecae3493c88597dd7d4cab6592e3e38fef6bf86 (diff) | |
download | src-17aa4afba3a897321dc26c82010ef0faacd79dd9.tar.gz src-17aa4afba3a897321dc26c82010ef0faacd79dd9.zip |
Use only the bit after the ``\'' when hashing the challenge in
MSChapv2
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
Notes
Notes:
svn path=/head/; revision=69330
Diffstat (limited to 'usr.sbin/ppp/chap_ms.c')
-rw-r--r-- | usr.sbin/ppp/chap_ms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chap_ms.c b/usr.sbin/ppp/chap_ms.c index e482296ef794..59ebb4638e52 100644 --- a/usr.sbin/ppp/chap_ms.c +++ b/usr.sbin/ppp/chap_ms.c @@ -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); |