From 59342ab622a96393d25d3a2f0592c8675e771295 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Thu, 3 Aug 2023 23:18:09 -0700 Subject: [PATCH] pppd: Fix compilation with openssl disabled (#431) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- pppd/crypto_ms.c | 2 -- 1 file changed, 2 deletions(-) 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) { -- 2.39.2