]> git.ozlabs.org Git - ppp.git/commit
New CHAP implementation, rewritten from scratch to avoid the code
authorPaul Mackerras <paulus@samba.org>
Wed, 11 Jun 2003 23:56:26 +0000 (23:56 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 11 Jun 2003 23:56:26 +0000 (23:56 +0000)
commit71d3de90eae52087b405e962ca650b71cec79c67
tree72920173c399582b3b069cb80255aed0040d4d45
parent14b5af09f0a70c5f6e6a3d2de11e578616a2ac85
New CHAP implementation, rewritten from scratch to avoid the code
copyrighted by the uncontactable Gregory Christy.  The new code is
much cleaner and splits out all the digest-specific code to separate
files.  Thus the CHAP-MD5 stuff is now in chap-md5.c and all the
CHAP-MS and CHAP-MSv2 stuff has moved into chap_ms.c, instead of
having half of it in chap.c.

There are a few minor differences in this implementation; we don't
retransmit responses, but instead just wait for a new challenge.
The success/failure messages are more boring as well.  In fact the
digest code now sets the success/failure message.

CHAP_DIGEST_MD5 has been renamed to CHAP_MD5 for consistency.
There is a new function random_bytes() in magic.c, which generates
a string of random bytes.
14 files changed:
pppd/Makefile.linux
pppd/auth.c
pppd/chap-md5.c [new file with mode: 0644]
pppd/chap-md5.h [new file with mode: 0644]
pppd/chap-new.c [new file with mode: 0644]
pppd/chap-new.h [new file with mode: 0644]
pppd/chap_ms.c
pppd/chap_ms.h
pppd/eap.c
pppd/eap.h
pppd/lcp.c
pppd/magic.c
pppd/magic.h
pppd/main.c