Skip to content

Commit 2efa4e3

Browse files
authored
Merge pull request #224 from luvit/up
update openssl to 1.1.1d
2 parents 60b226e + 76bdeb6 commit 2efa4e3

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ if(DEFINED ENV{LUA_COMPAT53_DIR})
112112
set(LUA_COMPAT53_DIR $ENV{LUA_COMPAT53_DIR})
113113
endif()
114114
include_directories(${LUA_COMPAT53_DIR})
115+
include_directories(${LUA_COMPAT53_DIR}/c-api)
115116

116117
if (WithOpenSSL)
117118
include(deps/openssl.cmake)

deps/openssl.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,35 @@ else (WithSharedOpenSSL)
2727
set(OPENSSL_CONFIGURE_COMMAND ./config ${OPENSSL_CONFIG_OPTIONS})
2828
set(OPENSSL_BUILD_COMMAND make)
2929
endif()
30-
30+
3131
ExternalProject_Add(openssl
3232
PREFIX openssl
33-
URL https://www.openssl.org/source/openssl-1.1.1b.tar.gz
34-
URL_HASH SHA256=5c557b023230413dfb0756f3137a13e6d726838ccd1430888ad15bfb2b43ea4b
33+
URL https://www.openssl.org/source/openssl-1.1.1d.tar.gz
34+
URL_HASH SHA256=1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
3535
LOG_BUILD ON
3636
BUILD_IN_SOURCE YES
3737
BUILD_COMMAND ${OPENSSL_BUILD_COMMAND}
3838
CONFIGURE_COMMAND ${OPENSSL_CONFIGURE_COMMAND}
3939
INSTALL_COMMAND ""
4040
TEST_COMMAND ""
4141
)
42-
42+
4343
set(OPENSSL_DIR ${CMAKE_BINARY_DIR}/openssl/src/openssl)
4444
set(OPENSSL_INCLUDE ${OPENSSL_DIR}/include)
45-
45+
4646
if(WIN32)
4747
set(OPENSSL_LIB_CRYPTO ${OPENSSL_DIR}/libcrypto.lib)
4848
set(OPENSSL_LIB_SSL ${OPENSSL_DIR}/libssl.lib)
4949
else()
5050
set(OPENSSL_LIB_CRYPTO ${OPENSSL_DIR}/libcrypto.a)
5151
set(OPENSSL_LIB_SSL ${OPENSSL_DIR}/libssl.a)
5252
endif()
53-
53+
5454
add_library(openssl_ssl STATIC IMPORTED)
5555
set_target_properties(openssl_ssl PROPERTIES IMPORTED_LOCATION ${OPENSSL_LIB_SSL})
5656
add_library(openssl_crypto STATIC IMPORTED)
5757
set_target_properties(openssl_crypto PROPERTIES IMPORTED_LOCATION ${OPENSSL_LIB_CRYPTO})
58-
58+
5959
include_directories(${OPENSSL_INCLUDE})
6060
list(APPEND LIB_LIST openssl_ssl openssl_crypto)
6161
endif (WithSharedOpenSSL)

src/luvi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#endif
3535

3636
#if (LUA_VERSION_NUM!=503)
37-
#include "c-api/compat-5.3.h"
37+
#include "compat-5.3.h"
3838
#endif
3939

4040
#ifdef WITH_OPENSSL

src/luvi_compat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#define lutf8lib_c
44

55
#include "luvi.h"
6-
#include "c-api/compat-5.3.h"
7-
#include "c-api/compat-5.3.c"
6+
#include "compat-5.3.h"
7+
#include "compat-5.3.c"
88

99
#include "lprefix.h"
1010
#include "lstrlib.c"

0 commit comments

Comments
 (0)