aboutsummaryrefslogtreecommitdiffstats
path: root/main/coova-chilli/des.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/coova-chilli/des.patch')
-rw-r--r--main/coova-chilli/des.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/main/coova-chilli/des.patch b/main/coova-chilli/des.patch
deleted file mode 100644
index ae647d5970..0000000000
--- a/main/coova-chilli/des.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 1a809062ecab70de13e299487fdd635434bc86d8 Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Tue, 4 Oct 2016 20:31:54 +0200
-Subject: [PATCH] Replace deprecated des_ with DES_
-
-The des_* fuctions were renamed to DES_ with openssl 0.9.7 (2002). This
-fixes building with libressl and probably openssl 1.1.0 too.
----
- src/ms_chap.c | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/src/ms_chap.c b/src/ms_chap.c
-index 2c236d2..8ad8327 100644
---- a/src/ms_chap.c
-+++ b/src/ms_chap.c
-@@ -96,18 +96,18 @@ MakeKey(u_char *key, u_char *des_key)
- des_key[6] = Get7Bits(key, 42);
- des_key[7] = Get7Bits(key, 49);
-
-- des_set_odd_parity((des_cblock *)des_key);
-+ DES_set_odd_parity((DES_cblock *)des_key);
- }
-
- static void /* IN 8 octets IN 7 octest OUT 8 octets */
- DesEncrypt(u_char *clear, u_char *key, u_char *cipher)
- {
-- des_cblock des_key;
-- des_key_schedule key_schedule;
-+ DES_cblock des_key;
-+ DES_key_schedule key_schedule;
-
- MakeKey(key, des_key);
-- des_set_key(&des_key, key_schedule);
-- des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher, key_schedule, 1);
-+ DES_set_key(&des_key, &key_schedule);
-+ DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher, &key_schedule, 1);
- }
-
- #define LENGTH 20
---
-2.10.0
-