From: Eivind Næss Date: Fri, 4 Aug 2023 06:18:09 +0000 (-0700) Subject: pppd: Fix compilation with openssl disabled (#431) X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=59342ab622a96393d25d3a2f0592c8675e771295 pppd: Fix compilation with openssl disabled (#431) If openssl is disabled at configure time but microsoft extensions are enabled, we get a compilation error due to an unnecessary include in crypto_ms.c. This removes the unnecessary include. With this, pppd compiles without openssl as long as you add the following arguments to the configure script invocation: --disable-peap --disable-eaptls --without-openssl Fixes: https://github.com/ppp-project/ppp/issues/429 Signed-off-by: Eivind Næss --- diff --git a/pppd/crypto_ms.c b/pppd/crypto_ms.c index a9ddd5f..ccf8129 100644 --- a/pppd/crypto_ms.c +++ b/pppd/crypto_ms.c @@ -122,8 +122,6 @@ MakeKey(const unsigned char *key, unsigned char *des_key) DES_set_odd_parity((DES_cblock *)des_key); } -#include - int DesEncrypt(const unsigned char *clear, const unsigned char *key, unsigned char *cipher) {