]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Fix compilation with openssl disabled (#431)
authorEivind Næss <eivnaes@yahoo.com>
Fri, 4 Aug 2023 06:18:09 +0000 (23:18 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Aug 2023 06:18:09 +0000 (16:18 +1000)
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 <eivnaes@yahoo.com>
pppd/crypto_ms.c

index a9ddd5fda9465eb3a2fc18f96ae3993b1e09e979..ccf8129d418c0c1492ec65482c8c3147ab11a49c 100644 (file)
@@ -122,8 +122,6 @@ MakeKey(const unsigned char *key, unsigned char *des_key)
        DES_set_odd_parity((DES_cblock *)des_key);
 }
 
-#include <openssl/evp.h>
-
 int
 DesEncrypt(const unsigned char *clear, const unsigned char *key, unsigned char *cipher)
 {