]> git.ozlabs.org Git - ppp.git/commit - pppd/peap.c
Improve the PEAP contribution by Rustam Kovhaev
authorEivind Næss <eivnaes@yahoo.com>
Thu, 24 Jun 2021 23:06:11 +0000 (16:06 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Mon, 27 Sep 2021 16:17:32 +0000 (09:17 -0700)
commit789e867f6e51b2d3e7f6ebe723f43764d5d8b595
tree4b58142260936a5647fe24309c678783e666bede
parent4e2c49755175d05f7f4a3c1c70a42d2eef9d7839
Improve the PEAP contribution by Rustam Kovhaev

These changes adds to his contribution by

  * Adding options to perform CA/CRL checking and certificate validation
    consistent with what is already been done for EAP-TLS
  * Certificate validation is now in line with what is already been done
    for EAP-TLS. Users can now set "remotename" and "tls-verify-method" to
    control these.
  * Validation of certificate purpose and extended key usage is controlled
    by the option "tls-verify-key-usage".
  * Fixing up MPPE key generation to use the new API for handling MPPE keys
  * Man page is updated where appropriate for the new options.
  * Added unit-tests for the PEAP code in case of crypto or parameters would
    change in the future.
  * Added the peap feature to configure scripts. Users can now control the
    feature by specifying --enable-peap/--disable-peap.

To acheive feature parity with the EAP-TLS change, the EAP-TLS common code was
refactored into tls.c/.h such that it could be re-used in both instances.

Using PEAP/MSCHAPv2 is now supported in PPPD with this change.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
14 files changed:
configure.ac
pppd/Makefile.am
pppd/auth.c
pppd/eap-tls.c
pppd/eap-tls.h
pppd/eap.c
pppd/eap.h
pppd/mppe.c
pppd/peap.c
pppd/peap.h
pppd/pppd.8
pppd/pppd.h
pppd/tls.c [new file with mode: 0644]
pppd/tls.h [new file with mode: 0644]