Skip to content

Commit 4a5e8d9

Browse files
zoobazware
authored andcommitted
[3.11] gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649)
1 parent 2186212 commit 4a5e8d9

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Windows build to use OpenSSL 3.0.9

PCbuild/get_externals.bat

+2-2
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.4
56-
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1u
56+
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-3.0.9
5757
set libraries=%libraries% sqlite-3.42.0.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.4
80-
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1u
80+
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-3.0.9
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/openssl.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
</Link>
1111
</ItemDefinitionGroup>
1212
<PropertyGroup>
13-
<_DLLSuffix>-1_1</_DLLSuffix>
13+
<_DLLSuffix>-3</_DLLSuffix>
1414
<_DLLSuffix Condition="$(Platform) == 'ARM'">$(_DLLSuffix)-arm</_DLLSuffix>
1515
<_DLLSuffix Condition="$(Platform) == 'ARM64'">$(_DLLSuffix)-arm64</_DLLSuffix>
16-
<OpenSSLDLLSuffix>$(_DLLSuffix)</OpenSSLDLLSuffix>
16+
<OpenSSLDLLSuffix Condition="$(OpenSSLDLLSuffix) == ''">$(_DLLSuffix)</OpenSSLDLLSuffix>
1717
</PropertyGroup>
1818
<ItemGroup>
1919
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" />

PCbuild/python.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
<libffiDir Condition="$(libffiDir) == ''">$(ExternalsDir)libffi-3.4.4\</libffiDir>
7575
<libffiOutDir Condition="$(libffiOutDir) == ''">$(libffiDir)$(ArchName)\</libffiOutDir>
7676
<libffiIncludeDir Condition="$(libffiIncludeDir) == ''">$(libffiOutDir)include</libffiIncludeDir>
77-
<opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-1.1.1u\</opensslDir>
78-
<opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-1.1.1u\$(ArchName)\</opensslOutDir>
77+
<opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-3.0.9\</opensslDir>
78+
<opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-3.0.9\$(ArchName)\</opensslOutDir>
7979
<opensslIncludeDir Condition="$(opensslIncludeDir) == ''">$(opensslOutDir)include</opensslIncludeDir>
8080
<nasmDir Condition="$(nasmDir) == ''">$(ExternalsDir)\nasm-2.11.06\</nasmDir>
8181
<zlibDir Condition="$(zlibDir) == ''">$(ExternalsDir)\zlib-1.2.13\</zlibDir>

PCbuild/readme.txt

+1-1
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.1u of the OpenSSL secure sockets
171+
Python wrapper for version 3.0 of the OpenSSL secure sockets
172172
library, which is downloaded from our binaries repository at
173173
https://github.com/python/cpython-bin-deps.
174174

PCbuild/regen.targets

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@
9797
<_LicenseSources Include="$(PySourcePath)LICENSE;
9898
$(PySourcePath)PC\crtlicense.txt;
9999
$(bz2Dir)LICENSE;
100-
$(opensslOutDir)LICENSE;
101100
$(libffiDir)LICENSE;" />
101+
<_LicenseSources Include="$(opensslOutDir)LICENSE.txt" Condition="Exists('$(opensslOutDir)LICENSE.txt')" />
102+
<_LicenseSources Include="$(opensslOutDir)LICENSE" Condition="!Exists('$(opensslOutDir)LICENSE.txt')" />
102103
<_LicenseSources Include="$(tcltkDir)tcllicense.terms;
103104
$(tcltkDir)tklicense.terms;
104105
$(tcltkDir)tixlicense.terms" Condition="$(IncludeTkinter)" />

0 commit comments

Comments
 (0)