]> git.ozlabs.org Git - ppp.git/commit
pppd: Refactor eap MSCHAPv2 using chap_find_digest
authorTijs Van Buggenhout <tvbuggen@gmail.com>
Mon, 4 Jan 2021 22:59:57 +0000 (23:59 +0100)
committerTijs Van Buggenhout <tvbuggen@gmail.com>
Wed, 6 Jan 2021 14:21:59 +0000 (15:21 +0100)
commit566ef9ef0a7be9c4f099d07846000adb825e0b7a
treee9708272dc16ea58a5c313e9f2c1feb9837616f9
parent6103878d4751a16075759091b73cf61d97687c25
pppd: Refactor eap MSCHAPv2 using chap_find_digest

Remove code duplication from eap.c related to eap MSCHAPv2 (server)
implementation.

The chap_find_digest function - introduced in [1] - exposes the
registered CHAP digests type definitions, providing functions to
generate a challenge and verify a response, among others.

1. https://github.com/paulusmack/ppp/commit/14c1a77816e837852138e87a4adccfd66030b2c3

Signed-off-by: Tijs Van Buggenhout <tvbuggen@gmail.com>
pppd/eap.c