summaryrefslogtreecommitdiff
path: root/devel/libpdel/files/patch-ppp_ppp__msoft.c
blob: afe604187ebe2fa6c8c74b388c84d3d1cf95af41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- ppp/ppp_msoft.c.orig	2009-05-13 21:36:03 UTC
+++ ppp/ppp_msoft.c
@@ -130,14 +130,14 @@ ppp_msoft_challenge_response(const u_char *chal,
 static void
 ppp_msoft_des_encrypt(const u_char *clear, u_char *key0, u_char *cypher)
 {
-	des_key_schedule ks;
+	DES_key_schedule ks;
 	u_char key[8];
 
 	/*
 	 * Create DES key
 	 *
 	 * Note: we don't bother setting the parity bit because
-	 * the des_set_key() algorithm does that for us. A different
+	 * the DES_set_key() algorithm does that for us. A different
 	 * algorithm may care though.
 	 */
 	key[0] = key0[0] & 0xfe;
@@ -148,10 +148,10 @@ ppp_msoft_des_encrypt(const u_char *clear, u_char *key
 	key[5] = (key0[4] << 3) | (key0[5] >> 5);
 	key[6] = (key0[5] << 2) | (key0[6] >> 6);
 	key[7] = key0[6] << 1;
-	des_set_key((des_cblock *)key, ks);
+	DES_set_key((DES_cblock *)key, &ks);
 
 	/* Encrypt using key */
-	des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cypher, ks, 1);
+	DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cypher, &ks, 1);
 }
 
 /*