]> git.ozlabs.org Git - ppp.git/commitdiff
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)
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>

No differences found