summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2000-11-28 22:50:40 +0000
committerbrian <brian@cvs.openbsd.org>2000-11-28 22:50:40 +0000
commitf4653847f96fc818d29924ff7237a95737b6fdaa (patch)
tree14bffc3313b8bfe9f8a50148e0c98db820f53dd8
parentc71235edc90eef622d764b991fc63f40e0bab2a8 (diff)
Use only the bit after the ``\'' when hashing the challenge in
MSChapv2 Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
-rw-r--r--usr.sbin/ppp/ppp/chap_ms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/chap_ms.c b/usr.sbin/ppp/ppp/chap_ms.c
index 1a05a6b245a..fcb68306cc2 100644
--- a/usr.sbin/ppp/ppp/chap_ms.c
+++ b/usr.sbin/ppp/ppp/chap_ms.c
@@ -19,7 +19,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $OpenBSD: chap_ms.c,v 1.6 2000/11/02 00:54:33 brian Exp $
+ * $OpenBSD: chap_ms.c,v 1.7 2000/11/28 22:50:39 brian Exp $
*
*/
@@ -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);