| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ jobs: | |||
| 59 | 59 | variables: | |
| 60 | 60 | testRunTitle: '$(build.sourceBranchName)-linux' | |
| 61 | 61 | testRunPlatform: linux | |
| 62 | - openssl_version: 1.1.0j | ||
| 62 | + openssl_version: 1.1.1b | ||
| 63 | 63 | ||
| 64 | 64 | steps: | |
| 65 | 65 | - template: ./posix-steps.yml | |
@@ -116,7 +116,7 @@ jobs: | |||
| 116 | 116 | variables: | |
| 117 | 117 | testRunTitle: '$(Build.SourceBranchName)-linux-coverage' | |
| 118 | 118 | testRunPlatform: linux-coverage | |
| 119 | - openssl_version: 1.1.0j | ||
| 119 | + openssl_version: 1.1.1b | ||
| 120 | 120 | ||
| 121 | 121 | steps: | |
| 122 | 122 | - template: ./posix-steps.yml | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -494,8 +494,8 @@ def test_start_tls_server_1(self): | |||
| 494 | 494 | ||
| 495 | 495 | server_context = test_utils.simple_server_sslcontext() | |
| 496 | 496 | client_context = test_utils.simple_client_sslcontext() | |
| 497 | - if sys.platform.startswith('freebsd'): | ||
| 498 | - # bpo-35031: Some FreeBSD buildbots fail to run this test | ||
| 497 | + if sys.platform.startswith('freebsd') or sys.platform.startswith('win'): | ||
| 498 | + # bpo-35031: Some FreeBSD and Windows buildbots fail to run this test | ||
| 499 | 499 | # as the eof was not being received by the server if the payload | |
| 500 | 500 | # size is not big enough. This behaviour only appears if the | |
| 501 | 501 | # client is using TLS1.3. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2214,14 +2214,17 @@ def wrap_conn(self): | |||
| 2214 | 2214 | self.sock, server_side=True) | |
| 2215 | 2215 | self.server.selected_npn_protocols.append(self.sslconn.selected_npn_protocol()) | |
| 2216 | 2216 | self.server.selected_alpn_protocols.append(self.sslconn.selected_alpn_protocol()) | |
| 2217 | - except (ConnectionResetError, BrokenPipeError) as e: | ||
| 2217 | + except (ConnectionResetError, BrokenPipeError, ConnectionAbortedError) as e: | ||
| 2218 | 2218 | # We treat ConnectionResetError as though it were an | |
| 2219 | 2219 | # SSLError - OpenSSL on Ubuntu abruptly closes the | |
| 2220 | 2220 | # connection when asked to use an unsupported protocol. | |
| 2221 | 2221 | # | |
| 2222 | 2222 | # BrokenPipeError is raised in TLS 1.3 mode, when OpenSSL | |
| 2223 | 2223 | # tries to send session tickets after handshake. | |
| 2224 | 2224 | # https://github.com/openssl/openssl/issues/6342 | |
| 2225 | + # | ||
| 2226 | + # ConnectionAbortedError is raised in TLS 1.3 mode, when OpenSSL | ||
| 2227 | + # tries to send session tickets after handshake when using WinSock. | ||
| 2225 | 2228 | self.server.conn_errors.append(str(e)) | |
| 2226 | 2229 | if self.server.chatty: | |
| 2227 | 2230 | handle_error("\n server: bad connection attempt from " + repr(self.addr) + ":\n") | |
@@ -2352,7 +2355,7 @@ def run(self): | |||
| 2352 | 2355 | sys.stdout.write(" server: read %r (%s), sending back %r (%s)...\n" | |
| 2353 | 2356 | % (msg, ctype, msg.lower(), ctype)) | |
| 2354 | 2357 | self.write(msg.lower()) | |
| 2355 | - except ConnectionResetError: | ||
| 2358 | + except (ConnectionResetError, ConnectionAbortedError): | ||
| 2356 | 2359 | # XXX: OpenSSL 1.1.1 sometimes raises ConnectionResetError | |
| 2357 | 2360 | # when connection is not shut down gracefully. | |
| 2358 | 2361 | if self.server.chatty and support.verbose: | |
@@ -2362,6 +2365,18 @@ def run(self): | |||
| 2362 | 2365 | ) | |
| 2363 | 2366 | self.close() | |
| 2364 | 2367 | self.running = False | |
| 2368 | + except ssl.SSLError as err: | ||
| 2369 | + # On Windows sometimes test_pha_required_nocert receives the | ||
| 2370 | + # PEER_DID_NOT_RETURN_A_CERTIFICATE exception | ||
| 2371 | + # before the 'tlsv13 alert certificate required' exception. | ||
| 2372 | + # If the server is stopped when PEER_DID_NOT_RETURN_A_CERTIFICATE | ||
| 2373 | + # is received test_pha_required_nocert fails with ConnectionResetError | ||
| 2374 | + # because the underlying socket is closed | ||
| 2375 | + if 'PEER_DID_NOT_RETURN_A_CERTIFICATE' == err.reason: | ||
| 2376 | + if self.server.chatty and support.verbose: | ||
| 2377 | + sys.stdout.write(err.args[1]) | ||
| 2378 | + # test_pha_required_nocert is expecting this exception | ||
| 2379 | + raise ssl.SSLError('tlsv13 alert certificate required') | ||
| 2365 | 2380 | except OSError: | |
| 2366 | 2381 | if self.server.chatty: | |
| 2367 | 2382 | handle_error("Test server failure:\n") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1088,6 +1088,7 @@ Tim Mitchell | |||
| 1088 | 1088 | Zubin Mithra | |
| 1089 | 1089 | Florian Mladitsch | |
| 1090 | 1090 | Doug Moen | |
| 1091 | + Paul Monson | ||
| 1091 | 1092 | The Dragon De Monsyne | |
| 1092 | 1093 | Bastien Montagne | |
| 1093 | 1094 | Skip Montanaro | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Update to OpenSSL 1.1.1b for Windows. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -669,7 +669,7 @@ fill_and_set_sslerror(PySSLSocket *sslsock, PyObject *type, int ssl_errno, | |||
| 669 | 669 | if (msg == NULL) | |
| 670 | 670 | goto fail; | |
| 671 | 671 | ||
| 672 | - init_value = Py_BuildValue("iN", ssl_errno, msg); | ||
| 672 | + init_value = Py_BuildValue("iN", ERR_GET_REASON(ssl_errno), msg); | ||
| 673 | 673 | if (init_value == NULL) | |
| 674 | 674 | goto fail; | |
| 675 | 675 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ echo.Fetching external libraries... | |||
| 49 | 49 | ||
| 50 | 50 | set libraries= | |
| 51 | 51 | set libraries=%libraries% bzip2-1.0.6 | |
| 52 | - if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.0j | ||
| 52 | + if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1b | ||
| 53 | 53 | set libraries=%libraries% sqlite-3.21.0.0 | |
| 54 | 54 | if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tcl-core-8.6.9.0 | |
| 55 | 55 | if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tk-8.6.9.0 | |
@@ -72,7 +72,7 @@ for %%e in (%libraries%) do ( | |||
| 72 | 72 | echo.Fetching external binaries... | |
| 73 | 73 | ||
| 74 | 74 | set binaries= | |
| 75 | - if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.0j | ||
| 75 | + if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1b | ||
| 76 | 76 | if NOT "%IncludeTkinter%"=="false" set binaries=%binaries% tcltk-8.6.9.0 | |
| 77 | 77 | if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06 | |
| 78 | 78 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,8 @@ | |||
| 11 | 11 | </ItemDefinitionGroup> | |
| 12 | 12 | <PropertyGroup> | |
| 13 | 13 | <_DLLSuffix>-1_1</_DLLSuffix> | |
| 14 | - <_DLLSuffix Condition="$(Platform) == 'x64'">$(_DLLSuffix)-x64</_DLLSuffix> | ||
| 14 | + <_DLLSuffix Condition="$(Platform) == 'ARM'">$(_DLLSuffix)-arm</_DLLSuffix> | ||
| 15 | + <_DLLSuffix Condition="$(Platform) == 'ARM64'">$(_DLLSuffix)-arm64</_DLLSuffix> | ||
| 15 | 16 | </PropertyGroup> | |
| 16 | 17 | <ItemGroup> | |
| 17 | 18 | <_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,37 +1,21 @@ | |||
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | 2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | 3 | <ItemGroup Label="ProjectConfigurations"> | |
| 4 | - <ProjectConfiguration Include="Debug|Win32"> | ||
| 5 | - <Configuration>Debug</Configuration> | ||
| 6 | - <Platform>Win32</Platform> | ||
| 7 | - </ProjectConfiguration> | ||
| 8 | 4 | <ProjectConfiguration Include="Release|Win32"> | |
| 9 | 5 | <Configuration>Release</Configuration> | |
| 10 | 6 | <Platform>Win32</Platform> | |
| 11 | 7 | </ProjectConfiguration> | |
| 12 | - <ProjectConfiguration Include="PGInstrument|Win32"> | ||
| 13 | - <Configuration>PGInstrument</Configuration> | ||
| 14 | - <Platform>Win32</Platform> | ||
| 15 | - </ProjectConfiguration> | ||
| 16 | - <ProjectConfiguration Include="PGInstrument|x64"> | ||
| 17 | - <Configuration>PGInstrument</Configuration> | ||
| 18 | - <Platform>x64</Platform> | ||
| 19 | - </ProjectConfiguration> | ||
| 20 | - <ProjectConfiguration Include="PGUpdate|Win32"> | ||
| 21 | - <Configuration>PGUpdate</Configuration> | ||
| 22 | - <Platform>Win32</Platform> | ||
| 23 | - </ProjectConfiguration> | ||
| 24 | - <ProjectConfiguration Include="PGUpdate|x64"> | ||
| 25 | - <Configuration>PGUpdate</Configuration> | ||
| 8 | + <ProjectConfiguration Include="Release|x64"> | ||
| 9 | + <Configuration>Release</Configuration> | ||
| 26 | 10 | <Platform>x64</Platform> | |
| 27 | 11 | </ProjectConfiguration> | |
| 28 | - <ProjectConfiguration Include="Debug|x64"> | ||
| 29 | - <Configuration>Debug</Configuration> | ||
| 30 | - <Platform>x64</Platform> | ||
| 12 | + <ProjectConfiguration Include="Release|ARM"> | ||
| 13 | + <Configuration>Release</Configuration> | ||
| 14 | + <Platform>ARM</Platform> | ||
| 31 | 15 | </ProjectConfiguration> | |
| 32 | - <ProjectConfiguration Include="Release|x64"> | ||
| 16 | + <ProjectConfiguration Include="Release|ARM64"> | ||
| 33 | 17 | <Configuration>Release</Configuration> | |
| 34 | - <Platform>x64</Platform> | ||
| 18 | + <Platform>ARM64</Platform> | ||
| 35 | 19 | </ProjectConfiguration> | |
| 36 | 20 | </ItemGroup> | |
| 37 | 21 | <PropertyGroup Label="Globals"> | |
@@ -40,15 +24,36 @@ | |||
| 40 | 24 | ||
| 41 | 25 | <Import Project="python.props" /> | |
| 42 | 26 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
| 43 | - | ||
| 44 | - <PropertyGroup Label="Configuration"> | ||
| 27 | + | ||
| 28 | + <PropertyGroup Label="Configuration" Condition="$(Platform) == 'Win32'"> | ||
| 45 | 29 | <ConfigurationType>Makefile</ConfigurationType> | |
| 46 | 30 | <Bitness>32</Bitness> | |
| 47 | - <Bitness Condition="$(Platform) == 'x64'">64</Bitness> | ||
| 48 | 31 | <ArchName>x86</ArchName> | |
| 49 | - <ArchName Condition="$(Platform) == 'x64'">amd64</ArchName> | ||
| 50 | 32 | <OpenSSLPlatform>VC-WIN32</OpenSSLPlatform> | |
| 51 | - <OpenSSLPlatform Condition="$(Platform) == 'x64'">VC-WIN64A</OpenSSLPlatform> | ||
| 33 | + <SupportSigning>true</SupportSigning> | ||
| 34 | + </PropertyGroup> | ||
| 35 | + | ||
| 36 | + <PropertyGroup Label="Configuration" Condition="$(Platform) == 'x64'"> | ||
| 37 | + <ConfigurationType>Makefile</ConfigurationType> | ||
| 38 | + <Bitness>64</Bitness> | ||
| 39 | + <ArchName>amd64</ArchName> | ||
| 40 | + <OpenSSLPlatform>VC-WIN64A-masm</OpenSSLPlatform> | ||
| 41 | + <SupportSigning>true</SupportSigning> | ||
| 42 | + </PropertyGroup> | ||
| 43 | + | ||
| 44 | + <PropertyGroup Label="Configuration" Condition="$(Platform) == 'ARM'"> | ||
| 45 | + <ConfigurationType>Makefile</ConfigurationType> | ||
| 46 | + <Bitness>ARM</Bitness> | ||
| 47 | + <ArchName>ARM</ArchName> | ||
| 48 | + <OpenSSLPlatform>VC-WIN32-ARM</OpenSSLPlatform> | ||
| 49 | + <SupportSigning>true</SupportSigning> | ||
| 50 | + </PropertyGroup> | ||
| 51 | + | ||
| 52 | + <PropertyGroup Label="Configuration" Condition="$(Platform) == 'ARM64'"> | ||
| 53 | + <ConfigurationType>Makefile</ConfigurationType> | ||
| 54 | + <Bitness>ARM64</Bitness> | ||
| 55 | + <ArchName>ARM64</ArchName> | ||
| 56 | + <OpenSSLPlatform>VC-WIN64-ARM</OpenSSLPlatform> | ||
| 52 | 57 | <SupportSigning>true</SupportSigning> | |
| 53 | 58 | </PropertyGroup> | |
| 54 | 59 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ if ERRORLEVEL 1 (echo Cannot locate MSBuild.exe on PATH or as MSBUILD variable & | |||
| 42 | 42 | call "%PCBUILD%\find_python.bat" "%PYTHON%" | |
| 43 | 43 | if ERRORLEVEL 1 (echo Cannot locate python.exe on PATH or as PYTHON variable & exit /b 3) | |
| 44 | 44 | ||
| 45 | - call "%PCBUILD%\get_externals.bat" --openssl-src %ORG_SETTING% | ||
| 45 | + call "%PCBUILD%\get_externals.bat" --openssl-src --no-openssl %ORG_SETTING% | ||
| 46 | 46 | ||
| 47 | 47 | if "%PERL%" == "" where perl > "%TEMP%\perl.loc" 2> nul && set /P PERL= <"%TEMP%\perl.loc" & del "%TEMP%\perl.loc" | |
| 48 | 48 | if "%PERL%" == "" (echo Cannot locate perl.exe on PATH or as PERL variable & exit /b 4) | |
@@ -51,4 +51,8 @@ if "%PERL%" == "" (echo Cannot locate perl.exe on PATH or as PERL variable & exi | |||
| 51 | 51 | if errorlevel 1 exit /b | |
| 52 | 52 | %MSBUILD% "%PCBUILD%\openssl.vcxproj" /p:Configuration=Release /p:Platform=x64 | |
| 53 | 53 | if errorlevel 1 exit /b | |
| 54 | + %MSBUILD% "%PCBUILD%\openssl.vcxproj" /p:Configuration=Release /p:Platform=ARM | ||
| 55 | + if errorlevel 1 exit /b | ||
| 56 | + %MSBUILD% "%PCBUILD%\openssl.vcxproj" /p:Configuration=Release /p:Platform=ARM64 | ||
| 57 | + if errorlevel 1 exit /b | ||
| 54 | 58 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments