Line 0
Link Here
|
|
|
1 |
--- ppp/ppp_msoft.c.orig 2005-01-21 22:02:07.000000000 +0100 |
2 |
+++ ppp/ppp_msoft.c 2015-01-24 13:42:43.120485776 +0100 |
3 |
@@ -163,14 +163,14 @@ |
4 |
static void |
5 |
ppp_msoft_des_encrypt(const u_char *clear, u_char *key0, u_char *cypher) |
6 |
{ |
7 |
- des_key_schedule ks; |
8 |
+ DES_key_schedule ks; |
9 |
u_char key[8]; |
10 |
|
11 |
/* |
12 |
* Create DES key |
13 |
* |
14 |
* Note: we don't bother setting the parity bit because |
15 |
- * the des_set_key() algorithm does that for us. A different |
16 |
+ * the DES_set_key() algorithm does that for us. A different |
17 |
* algorithm may care though. |
18 |
*/ |
19 |
key[0] = key0[0] & 0xfe; |
20 |
@@ -181,10 +181,10 @@ |
21 |
key[5] = (key0[4] << 3) | (key0[5] >> 5); |
22 |
key[6] = (key0[5] << 2) | (key0[6] >> 6); |
23 |
key[7] = key0[6] << 1; |
24 |
- des_set_key((des_cblock *)key, ks); |
25 |
+ DES_set_key((DES_cblock *)key, &ks); |
26 |
|
27 |
/* Encrypt using key */ |
28 |
- des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cypher, ks, 1); |
29 |
+ DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cypher, &ks, 1); |
30 |
} |
31 |
|
32 |
/* |