1 diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux
2 index 534ccc2..cf11b74 100644
3 --- a/pppd/Makefile.linux
4 +++ b/pppd/Makefile.linux
5 @@ -41,7 +41,7 @@ COPTS = -Wall $(RPM_OPT_FLAGS) -DLIBDIR=\""$(LIBDIR)"\"
6 # Uncomment the next 2 lines to include support for Microsoft's
7 # MS-CHAP authentication protocol. Also, edit plugins/radius/Makefile.linux.
11 # Don't use MSLANMAN unless you really know what you're doing.
13 # Uncomment the next line to include support for MPPE. CHAPMS (above) must
14 @@ -147,7 +147,8 @@ endif
18 -LIBS += -ldes $(LIBS)
19 +CFLAGS += -I/usr/include/openssl
22 CFLAGS += -DUSE_CRYPT=1
24 diff --git a/pppd/pppcrypt.c b/pppd/pppcrypt.c
25 index 8b85b13..6b35375 100644
28 @@ -64,7 +64,7 @@ u_char *des_key; /* OUT 64 bit DES key with parity bits added */
29 des_key[7] = Get7Bits(key, 49);
32 - des_set_odd_parity((des_cblock *)des_key);
33 + DES_set_odd_parity((DES_cblock *)des_key);
37 @@ -158,25 +158,25 @@ u_char *clear; /* OUT 8 octets */
41 -static des_key_schedule key_schedule;
42 +static DES_key_schedule key_schedule;
50 MakeKey(key, des_key);
51 - des_set_key(&des_key, key_schedule);
52 + DES_set_key(&des_key, &key_schedule);
57 -DesEncrypt(clear, key, cipher)
58 +DesEncrypt(clear, cipher)
59 u_char *clear; /* IN 8 octets */
60 u_char *cipher; /* OUT 8 octets */
62 - des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher,
64 + DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher,
69 @@ -185,8 +185,8 @@ DesDecrypt(cipher, clear)
70 u_char *cipher; /* IN 8 octets */
71 u_char *clear; /* OUT 8 octets */
73 - des_ecb_encrypt((des_cblock *)cipher, (des_cblock *)clear,
75 + DES_ecb_encrypt((DES_cblock *)cipher, (DES_cblock *)clear,