Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 873554e

Browse files
authored
gh-94682: Build and test with OpenSSL 1.1.1q (gh-94683)
1 parent 9c2b934 commit 873554e

File tree

9 files changed

+27
-20
lines changed

9 files changed

+27
-20
lines changed

.azure-pipelines/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(build.sourceBranchName)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1n
60+
openssl_version: 1.1.1q
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1n
86+
openssl_version: 1.1.1q
8787

8888
steps:
8989
- template: ./posix-steps.yml

.azure-pipelines/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1n
60+
openssl_version: 1.1.1q
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1n
86+
openssl_version: 1.1.1q
8787

8888
steps:
8989
- template: ./posix-steps.yml

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
needs: check_source
176176
if: needs.check_source.outputs.run_tests == 'true'
177177
env:
178-
OPENSSL_VER: 1.1.1n
178+
OPENSSL_VER: 1.1.1q
179179
PYTHONSTRICTEXTENSIONBUILD: 1
180180
steps:
181181
- uses: actions/checkout@v3
@@ -234,7 +234,7 @@ jobs:
234234
strategy:
235235
fail-fast: false
236236
matrix:
237-
openssl_ver: [1.1.1n, 3.0.2]
237+
openssl_ver: [1.1.1q, 3.0.5]
238238
env:
239239
OPENSSL_VER: ${{ matrix.openssl_ver }}
240240
MULTISSL_DIR: ${{ github.workspace }}/multissl
@@ -281,7 +281,7 @@ jobs:
281281
needs: check_source
282282
if: needs.check_source.outputs.run_tests == 'true'
283283
env:
284-
OPENSSL_VER: 1.1.1n
284+
OPENSSL_VER: 1.1.1q
285285
PYTHONSTRICTEXTENSIONBUILD: 1
286286
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
287287
steps:

Mac/BuildScript/build-installer.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ def library_recipes():
246246

247247
result.extend([
248248
dict(
249-
name="OpenSSL 1.1.1n",
250-
url="https://www.openssl.org/source/openssl-1.1.1n.tar.gz",
251-
checksum='2aad5635f9bb338bc2c6b7d19cbc9676',
249+
name="OpenSSL 1.1.1q",
250+
url="https://www.openssl.org/source/openssl-1.1.1q.tar.gz",
251+
checksum='d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca',
252252
buildrecipe=build_universal_openssl,
253253
configure=None,
254254
install=None,
@@ -797,10 +797,16 @@ def verifyThirdPartyFile(url, checksum, fname):
797797
print("Downloading %s"%(name,))
798798
downloadURL(url, fname)
799799
print("Archive for %s stored as %s"%(name, fname))
800+
if len(checksum) == 32:
801+
algo = 'md5'
802+
elif len(checksum) == 64:
803+
algo = 'sha256'
804+
else:
805+
raise ValueError(checksum)
800806
if os.system(
801-
'MD5=$(openssl md5 %s) ; test "${MD5##*= }" = "%s"'
802-
% (shellQuote(fname), checksum) ):
803-
fatal('MD5 checksum mismatch for file %s' % fname)
807+
'CHECKSUM=$(openssl %s %s) ; test "${CHECKSUM##*= }" = "%s"'
808+
% (algo, shellQuote(fname), checksum) ):
809+
fatal('%s checksum mismatch for file %s' % (algo, fname))
804810

805811
def build_universal_openssl(basedir, archList):
806812
"""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Build and test with OpenSSL 1.1.1q

PCbuild/get_externals.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ echo.Fetching external libraries...
5353
set libraries=
5454
set libraries=%libraries% bzip2-1.0.8
5555
if NOT "%IncludeLibffiSrc%"=="false" set libraries=%libraries% libffi-3.4.2
56-
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1n
56+
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1q
5757
set libraries=%libraries% sqlite-3.38.4.0
5858
if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tcl-core-8.6.12.1
5959
if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tk-8.6.12.1
@@ -77,7 +77,7 @@ echo.Fetching external binaries...
7777

7878
set binaries=
7979
if NOT "%IncludeLibffi%"=="false" set binaries=%binaries% libffi-3.4.2
80-
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1n
80+
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1q
8181
if NOT "%IncludeTkinter%"=="false" set binaries=%binaries% tcltk-8.6.12.1
8282
if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06
8383

PCbuild/python.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
<libffiDir>$(ExternalsDir)libffi-3.4.2\</libffiDir>
6868
<libffiOutDir>$(ExternalsDir)libffi-3.4.2\$(ArchName)\</libffiOutDir>
6969
<libffiIncludeDir>$(libffiOutDir)include</libffiIncludeDir>
70-
<opensslDir>$(ExternalsDir)openssl-1.1.1n\</opensslDir>
71-
<opensslOutDir>$(ExternalsDir)openssl-bin-1.1.1n\$(ArchName)\</opensslOutDir>
70+
<opensslDir>$(ExternalsDir)openssl-1.1.1q\</opensslDir>
71+
<opensslOutDir>$(ExternalsDir)openssl-bin-1.1.1q\$(ArchName)\</opensslOutDir>
7272
<opensslIncludeDir>$(opensslOutDir)include</opensslIncludeDir>
7373
<nasmDir>$(ExternalsDir)\nasm-2.11.06\</nasmDir>
7474
<zlibDir>$(ExternalsDir)\zlib-1.2.12\</zlibDir>

PCbuild/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ _lzma
168168
Homepage:
169169
https://tukaani.org/xz/
170170
_ssl
171-
Python wrapper for version 1.1.1k of the OpenSSL secure sockets
171+
Python wrapper for version 1.1.1q of the OpenSSL secure sockets
172172
library, which is downloaded from our binaries repository at
173173
https://github.com/python/cpython-bin-deps.
174174

Tools/ssl/multissltests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
]
4747

4848
OPENSSL_RECENT_VERSIONS = [
49-
"1.1.1n",
50-
"3.0.2"
49+
"1.1.1q",
50+
"3.0.5"
5151
]
5252

5353
LIBRESSL_OLD_VERSIONS = [

0 commit comments

Comments
 (0)