From ec722bf06ad5c83e37bc9d12f7dfc401e6069612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 12 Feb 2016 21:55:26 +0100 Subject: [PATCH] Using LibreSSL --- scripts/dependencies.sh | 22 ++++++++-------------- src/c/internet.c | 1 - 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/scripts/dependencies.sh b/scripts/dependencies.sh index 03137b5..7d52649 100755 --- a/scripts/dependencies.sh +++ b/scripts/dependencies.sh @@ -39,21 +39,15 @@ rm -rf dependencies/lib-$OUT mkdir -p dependencies/lib-$OUT cd dependencies -git clone git://git.openssl.org/openssl.git -cd openssl - -#./Configure -cd .. -rm -rf openssl-build -mkdir openssl-build -cd openssl-build -../openssl/Configure $OPENSSL_TARGET --unified no-asm -DOPENSSL_NO_HEARTBEATS --openssldir=$(cd ../lib-$OUT; pwd) no-shared no-threads no-dso -make libcrypto.a -j8 CC=$TOOL-gcc RANLIB=$TOOL-ranlib LD=$TOOL-ld MAKEDEPPROG=$TOOL-gcc PROCESSOR=ARM -make libssl.a -j8 CC=$TOOL-gcc RANLIB=$TOOL-ranlib LD=$TOOL-ld MAKEDEPPROG=$TOOL-gcc PROCESSOR=ARM +git clone https://github.com/libressl-portable/portable.git libressl +cd libressl +./autogen.sh +./configure --host=$TOOL +make clean +make -j8 mkdir -p ../include/openssl mkdir -p ../include-$OUT/openssl -cp -rfv ../openssl/include/openssl/* ../include/openssl +cp -rfv crypto/.libs/libcrypto.a ../lib-$OUT +cp -rfv ssl/.libs/libssl.a ../lib-$OUT cp -rfv include/openssl/* ../include-$OUT/openssl -cp -rfv libcrypto.a ../lib-$OUT -cp -rfv libssl.a ../lib-$OUT diff --git a/src/c/internet.c b/src/c/internet.c index 1a7d6cd..1a52612 100644 --- a/src/c/internet.c +++ b/src/c/internet.c @@ -114,7 +114,6 @@ static int l_read(lua_State *L) { static void ssl_init() { (void)SSL_library_init(); SSL_load_error_strings(); - OPENSSL_config(NULL); } void internet_start(lua_State *L) {