]> git.ozlabs.org Git - ppp.git/commit
Create a new API to abstract the crypto functions used by pppd.
authorEivind Næss <eivnaes@yahoo.com>
Wed, 3 Aug 2022 15:46:28 +0000 (08:46 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Fri, 12 Aug 2022 15:31:06 +0000 (08:31 -0700)
commit774440c7f0a2b633bae02980927e36ad371604dc
tree0fe509cdcfe247e89f96891be34d8b4b8fad4dc3
parent8cbd7dd098cbb565dd9b01397fb352f1c98376f3
Create a new API to abstract the crypto functions used by pppd.

This re-introduces the missing DES encryption functions copied from Openssl 3.0 project. Incorporates a new API for performing MD4/MD5/SHA and encryption using DES-ECB mode.

Unit tests are included for respective digest/encryption functions using this new API. With this change, you can pass configure --without-openssl to use the internally provided functions. If you do have openssl, then it will default to use these functions. This also provides a framework to allow other vendors to provide crypto.

This closes #333, partially addresses #242 (except the pkcs11 engine support). Word has it that openssl is working on support for this, and the libp11 / opensc project are inclined not to support this.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
23 files changed:
configure.ac
pppd/Makefile.am
pppd/chap-md5.c
pppd/chap_ms.c
pppd/eap.c
pppd/main.c
pppd/md4.c [deleted file]
pppd/md4.h [deleted file]
pppd/md5.c [deleted file]
pppd/md5.h [deleted file]
pppd/mppe.c
pppd/ppp-crypto-priv.h [new file with mode: 0644]
pppd/ppp-crypto.c [new file with mode: 0644]
pppd/ppp-crypto.h [new file with mode: 0644]
pppd/ppp-des.c [new file with mode: 0644]
pppd/ppp-md4.c [new file with mode: 0644]
pppd/ppp-md5.c [new file with mode: 0644]
pppd/ppp-sha1.c [new file with mode: 0644]
pppd/pppcrypt.c [deleted file]
pppd/pppcrypt.h [deleted file]
pppd/pppdconf.h.in
pppd/sha1.c [deleted file]
pppd/sha1.h [deleted file]