pppd: fix build with glibc 2.28
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 31 Oct 2018 10:28:25 +0000 (11:28 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 1 Nov 2018 13:23:29 +0000 (14:23 +0100)
commit541021ec24bc04b86964894d5aa16a30a3f584b7
tree8bc725c2d3bac211462ad3dfca6c182a93a09791
parent5e01e9442d548e4e362595891f67440e4f6b30e3
pppd: fix build with glibc 2.28

Since glibc 2.28
(https://savannah.gnu.org/forum/forum.php?forum_id=9205), the obsolete
functions encrypt, encrypt_r, setkey, setkey_r, cbc_crypt, ecb_crypt,
and des_setparity are no longer available to newly linked binaries, and
the headers <rpc/des_crypt.h> and <rpc/rpc_des.h> are no longer
installed. These functions encrypted and decrypted data with the DES
block cipher, which is no longer considered secure. Software that still
uses these functions should switch to a modern cryptography library,
such as libgcrypt.

So retrieve an upstream patch to use openssl instead of these functions
and a new patch to remove the unsafe header/library path
'-I/usr/include/openssl'

Fixes:
 - http://autobuild.buildroot.org/results/c13ca8b8afa8de700caf8cd2fa1812b8552b3f4a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pppd/0002-pppd-Use-openssl-for-the-DES-instead-of-the-libcrypt-glibc.patch [new file with mode: 0644]
package/pppd/0003-Add-OPENSSL_INCLUDE_DIR.patch [new file with mode: 0644]
package/pppd/Config.in
package/pppd/pppd.mk