Closed heruan closed 4 years ago
Hi, did you manage to find a solution to your issue? I am getting he same errors except I'm using a PC with Ubuntu 18.04
Not yet, unfortunately; I was hoping for a feedback from the maintainers.
Hi, the problem is OpenSSL 1.1 - CoovaChilli needs OpenSSL 1.0
apt install openssl1.0 mv /usr/bin/openssl /root/ ln -s /usr/lib/ssl1.0/openssl /usr/bin/openssl apt remove libssl-dev apt install libssl1.0-dev
Thank you @yoanbosch for the workaround. I'll leave this open to keep track on updating CoovaChilli to OpenSSL 1.1.
I'll just add that this command is sufficient for a successful build:
$ sudo apt install libssl1.0-dev
No need to install openssl1.0
, nor to move or link binaries.
I'll just add that this command is sufficient for a successful build:
$ sudo apt install libssl1.0-dev
No need to install
openssl1.0
, nor to move or link binaries.
Hello does anyone have successfully compile and create deb package in Ubuntu 18.04?
I've compiled before in 16.04 and need for compilation the following packages: build-essential libtool openssl libcurl3 libssl-dev libcurl4-openssl-dev libc-ares-dev libc-ares2 gengetopt debhelper libjson0-dev haserl m4 automake subversion devscripts
When I try to install them on 18.04 I have the following problems:
Anyone has suggestions?
HI ! If anyone has this issue and 'sudo apt install libssl1.0-dev' didn't helped, the following solved my issue: go to the build_dir/target-xxxx/coova-chilli-xxxx/src And open ms_chap.c as root.
Thanks Philippe2705!! That almost work!!!
The final "catch" for the ones compiling this is:
In the end it works like charm! Once again thanks for your help Philippe2705!!
HI ! If anyone has this issue and 'sudo apt install libssl1.0-dev' didn't helped, the following solved my issue: go to the build_dir/target-xxxx/coova-chilli-xxxx/src And open ms_chap.c as root.
* Replace des_set_odd_parity by DES_set_odd_parity * Replace des_cblock by DES_cblock * Replace des_key_schedule by DES_key_schedule * Replace des_set_key(&des_key, key_schedule) by DES_set_key(&des_key, &key_schedule) * Replace des_ecb_encrypt by DES_ecb_encrypt And I think it is all.
@sevan Any chance for an upcoming 1.5 (or 2.0?) release with up-to-date libraries?
Thanks @Philippe2705 and @norterj The patch for others trying at home is as follows:
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
It also seems this is fixed in #329 (db570308776ecf48e69f239bb66b1ee2b4b59a65) so you should be able to just cherry-pick that commit if you need
Try v1.5
I'm on the Ubuntu 18.04.1 Server image for Rasberry Pi 2 provided by Ubuntu here and I'm trying to compile CoovaChilli as described in http://coova.github.io/CoovaChilli/DistroBuilding/
This is the output of
debuild -b
(only the error part):Am I missing some dependency? Or maybe a library version mismatch?