Skip to content

Commit b239b63

Browse files
committed
Migrate curl, libssh2, libgit2 to OpenSSL
1 parent bdd1ef3 commit b239b63

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

deps/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ DEP_LIBS += gmp
120120
endif
121121

122122
ifeq ($(USE_SYSTEM_LIBGIT2), 0)
123-
ifeq ($(USE_SYSTEM_MBEDTLS), 0)
124-
DEP_LIBS += mbedtls
123+
ifeq ($(USE_SYSTEM_OPENSSL), 0)
124+
DEP_LIBS += openssl
125125
endif
126126

127127
ifeq ($(USE_SYSTEM_LIBSSH2), 0)

deps/curl.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ CURL_CONFIGURE_FLAGS += --enable-versioned-symbols \
4747
# We use different TLS libraries on different platforms.
4848
# On Windows, we use schannel
4949
# On MacOS, we use SecureTransport
50-
# On Linux, we use mbedTLS
50+
# On Linux, we use OpenSSL
5151
ifeq ($(OS), WINNT)
5252
CURL_TLS_CONFIGURE_FLAGS := --with-schannel
5353
else ifeq ($(OS), Darwin)
5454
CURL_TLS_CONFIGURE_FLAGS := --with-secure-transport
5555
else
56-
CURL_TLS_CONFIGURE_FLAGS := --with-mbedtls=$(build_prefix)
56+
CURL_TLS_CONFIGURE_FLAGS := --with-openssl
5757
endif
5858
CURL_CONFIGURE_FLAGS += $(CURL_TLS_CONFIGURE_FLAGS)
5959

deps/libgit2.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ifeq ($(USE_SYSTEM_LIBSSH2), 0)
99
$(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured: | $(build_prefix)/manifest/libssh2
1010
endif
1111

12-
ifeq ($(USE_SYSTEM_MBEDTLS), 0)
13-
$(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured: | $(build_prefix)/manifest/mbedtls
12+
ifeq ($(USE_SYSTEM_OPENSSL), 0)
13+
$(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured: | $(build_prefix)/manifest/openssl
1414
endif
1515

1616
LIBGIT2_OPTS := $(CMAKE_COMMON) -DCMAKE_BUILD_TYPE=Release -DUSE_THREADS=ON -DUSE_BUNDLED_ZLIB=ON -DUSE_SSH=ON -DBUILD_CLI=OFF
@@ -39,7 +39,7 @@ LIBGIT2_OPTS += -DCMAKE_C_FLAGS="-I/usr/local/include"
3939
endif
4040

4141
ifneq (,$(findstring $(OS),Linux FreeBSD OpenBSD))
42-
LIBGIT2_OPTS += -DUSE_HTTPS="mbedTLS" -DUSE_SHA1="CollisionDetection" -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
42+
LIBGIT2_OPTS += -DUSE_HTTPS="OpenSSL" -DUSE_SHA1="CollisionDetection" -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
4343
endif
4444

4545
LIBGIT2_SRC_PATH := $(SRCCACHE)/$(LIBGIT2_SRC_DIR)

deps/libssh2.mk

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ LIBSSH2_GIT_URL := https://github.com/libssh2/libssh2.git
44
LIBSSH2_TAR_URL = https://api.github.com/repos/libssh2/libssh2/tarball/$1
55
$(eval $(call git-external,libssh2,LIBSSH2,CMakeLists.txt,,$(SRCCACHE)))
66

7-
ifeq ($(USE_SYSTEM_MBEDTLS), 0)
8-
$(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured: | $(build_prefix)/manifest/mbedtls
7+
ifeq ($(USE_SYSTEM_OPENSSL), 0)
8+
$(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured: | $(build_prefix)/manifest/openssl
99
endif
1010

11+
1112
LIBSSH2_OPTS := $(CMAKE_COMMON) -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF \
1213
-DCMAKE_BUILD_TYPE=Release
1314

@@ -21,7 +22,7 @@ ifeq ($(BUILD_OS),WINNT)
2122
LIBSSH2_OPTS += -G"MSYS Makefiles"
2223
endif
2324
else
24-
LIBSSH2_OPTS += -DCRYPTO_BACKEND=mbedTLS -DENABLE_ZLIB_COMPRESSION=OFF
25+
LIBSSH2_OPTS += -DCRYPTO_BACKEND=OpenSSL -DENABLE_ZLIB_COMPRESSION=OFF
2526
endif
2627

2728
ifneq (,$(findstring $(OS),Linux FreeBSD OpenBSD))
@@ -34,14 +35,6 @@ endif
3435

3536
LIBSSH2_SRC_PATH := $(SRCCACHE)/$(LIBSSH2_SRC_DIR)
3637

37-
$(LIBSSH2_SRC_PATH)/libssh2-mbedtls-size_t.patch-applied: $(LIBSSH2_SRC_PATH)/source-extracted
38-
cd $(LIBSSH2_SRC_PATH) && \
39-
patch -p1 -f < $(SRCDIR)/patches/libssh2-mbedtls-size_t.patch
40-
echo 1 > $@
41-
42-
$(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured: \
43-
$(LIBSSH2_SRC_PATH)/libssh2-mbedtls-size_t.patch-applied
44-
4538
$(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured: $(LIBSSH2_SRC_PATH)/source-extracted
4639
mkdir -p $(dir $@)
4740
cd $(dir $@) && \

0 commit comments

Comments
 (0)