Skip to content

Commit 8eefd78

Browse files
committed
Upgrade to OpenSSL 1.1.1d.
1 parent f778b92 commit 8eefd78

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ MACOSX_DEPLOYMENT_TARGET=10.8
3333
PYTHON_VERSION=3.7.5
3434
PYTHON_VER=$(basename $(PYTHON_VERSION))
3535

36-
OPENSSL_VERSION_NUMBER=1.0.2
37-
OPENSSL_REVISION=t
36+
OPENSSL_VERSION_NUMBER=1.1.1
37+
OPENSSL_REVISION=d
3838
OPENSSL_VERSION=$(OPENSSL_VERSION_NUMBER)$(OPENSSL_REVISION)
3939

4040
BZIP2_VERSION=1.0.8
@@ -50,7 +50,7 @@ CFLAGS-macOS=-mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
5050

5151
# iOS targets
5252
TARGETS-iOS=iphonesimulator.x86_64 iphoneos.arm64
53-
CFLAGS-iOS=-mios-version-min=7.0
53+
CFLAGS-iOS=-mios-version-min=8.0
5454
CFLAGS-iphoneos.arm64=-fembed-bitcode
5555

5656
# tvOS targets
@@ -205,8 +205,9 @@ ifeq ($$(findstring simulator,$$(SDK-$1)),)
205205
sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" $$(OPENSSL_DIR-$1)/crypto/ui/ui_openssl.c
206206
endif
207207
ifeq ($$(findstring iphone,$$(SDK-$1)),)
208-
# Patch apps/speed.c to not use fork() since it's not available on tvOS
208+
# Patch apps/speed.c and apps/ocsp.c to not use fork() since it's not available on tvOS
209209
sed -ie 's/define HAVE_FORK 1/define HAVE_FORK 0/' $$(OPENSSL_DIR-$1)/apps/speed.c
210+
sed -ie 's/define HAVE_FORK 1/define HAVE_FORK 0/' $$(OPENSSL_DIR-$1)/apps/ocsp.c
210211
# Patch Configure to build for tvOS or watchOS, not iOS
211212
LC_ALL=C sed -ie 's/-D_REENTRANT:iOS/-D_REENTRANT:$2/' $$(OPENSSL_DIR-$1)/Configure
212213
endif
@@ -215,13 +216,13 @@ endif
215216
ifeq ($2,macOS)
216217
cd $$(OPENSSL_DIR-$1) && \
217218
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
218-
./Configure darwin64-x86_64-cc --openssldir=$(PROJECT_DIR)/build/$2/openssl
219+
./Configure darwin64-x86_64-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
219220
else
220221
cd $$(OPENSSL_DIR-$1) && \
221222
CC="$$(CC-$1)" \
222223
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
223224
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
224-
./Configure iphoneos-cross no-asm --openssldir=$(PROJECT_DIR)/build/$2/openssl
225+
./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
225226
endif
226227

227228
# Build OpenSSL

patch/Python/Setup.embedded

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _elementtree _elementtree.c \
2323
-I$(srcdir)/Modules/expat
2424
-DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
2525
_functools -DPy_BUILD_CORE _functoolsmodule.c
26-
_hashlib _hashopenssl.c -I$(srcdir)/../openssl/include -L$(srcdir)/../Support/OpenSSL -lOpenSSL -DUSE_SSL
26+
_hashlib _hashopenssl.c -I$(srcdir)/../Support/OpenSSL/Headers -L$(srcdir)/../Support/OpenSSL -lOpenSSL -DUSE_SSL
2727
_heapq _heapqmodule.c
2828
_io -DPy_BUILD_CORE -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
2929
_json _json.c
@@ -56,7 +56,7 @@ _sqlite3 -I$(srcdir)/Modules/_sqlite -DMODULE_NAME='\"sqlite3\"' -DSQLITE_OMIT_L
5656
_sqlite/statement.c \
5757
_sqlite/util.c
5858
_sre _sre.c
59-
_ssl _ssl.c -I$(srcdir)/../openssl/include -L$(srcdir)/../Support/OpenSSL -lOpenSSL -DUSE_SSL
59+
_ssl _ssl.c -I$(srcdir)/../Support/OpenSSL/Headers -L$(srcdir)/../Support/OpenSSL -lOpenSSL -DUSE_SSL
6060
_stat _stat.c
6161
_struct _struct.c
6262
_symtable symtablemodule.c

0 commit comments

Comments
 (0)