Skip to content

Commit

Permalink
pppd: Fix compilation with openssl disabled (#431)
Browse files Browse the repository at this point in the history
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: #429

Signed-off-by: Eivind Næss <[email protected]>
  • Loading branch information
enaess authored Aug 4, 2023
1 parent 039c51d commit 59342ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pppd/crypto_ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 59342ab

Please sign in to comment.