<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_ssl.py, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_ssl.py?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_ssl.py?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2024-01-17T13:43:00Z</updated>
<entry>
<title>[3.8] gh-108310: Fix TestPreHandshakeClose tests in test_ssl (#110718)</title>
<updated>2024-01-17T13:43:00Z</updated>
<author>
<name>Lumír 'Frenzy' Balhar</name>
<email>lbalhar@redhat.com</email>
</author>
<published>2024-01-17T13:43:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0df2eb5b267fb56d93faf561024548a8816a0269'/>
<id>urn:sha1:0df2eb5b267fb56d93faf561024548a8816a0269</id>
<content type='text'>
The new class is part of the fix for CVE-2023-40217:
https://github.com/python/cpython/commit/b4bcc06a9cfe13d96d5270809d963f8ba278f89b
but it's not in the lists of tests so they're not
executed. The new tests also need `SHORT_TIMEOUT`
constant not available in test.support in 3.8.

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
</entry>
<entry>
<title>[3.8] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) (#108408)</title>
<updated>2023-08-24T10:09:30Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2023-08-24T10:09:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=efb46e537eed203739e66dc2f131a27076cc23b3'/>
<id>urn:sha1:efb46e537eed203739e66dc2f131a27076cc23b3</id>
<content type='text'>
* In preauth tests of test_ssl, explicitly break reference cycles
  invoving SingleConnectionTestServerThread to make sure that the
  thread is deleted. Otherwise, the test marks the environment as
  altered because the threading module sees a "dangling thread"
  (SingleConnectionTestServerThread). This test leak was introduced
  by the test added for the fix of issue gh-108310.
* Use support.SHORT_TIMEOUT instead of hardcoded 1.0 or 2.0 seconds
  timeout.
* SingleConnectionTestServerThread.run() catchs TimeoutError
* Fix a race condition (missing synchronization) in
  test_preauth_data_to_tls_client(): the server now waits until the
  client connect() completed in call_after_accept().
* test_https_client_non_tls_response_ignored() calls server.join()
  explicitly.
* Replace "localhost" with server.listener.getsockname()[0].
(cherry picked from commit 592bacb6fc0833336c0453e818e9b95016e9fd47)
</content>
</entry>
<entry>
<title>[3.8] gh-108310: Fix CVE-2023-40217: Check for &amp; avoid the ssl pre-close flaw (#108321)</title>
<updated>2023-08-22T17:57:01Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2023-08-22T17:57:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b4bcc06a9cfe13d96d5270809d963f8ba278f89b'/>
<id>urn:sha1:b4bcc06a9cfe13d96d5270809d963f8ba278f89b</id>
<content type='text'>
gh-108310: Fix CVE-2023-40217: Check for &amp; avoid the ssl pre-close flaw

Instances of `ssl.SSLSocket` were vulnerable to a bypass of the TLS handshake
and included protections (like certificate verification) and treating sent
unencrypted data as if it were post-handshake TLS encrypted data.

The vulnerability is caused when a socket is connected, data is sent by the
malicious peer and stored in a buffer, and then the malicious peer closes the
socket within a small timing window before the other peers’ TLS handshake can
begin. After this sequence of events the closed socket will not immediately
attempt a TLS handshake due to not being connected but will also allow the
buffered data to be read as if a successful TLS handshake had occurred.

Co-authored-by: Gregory P. Smith [Google LLC] &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.8] gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347) (GH-95313)</title>
<updated>2022-07-27T21:43:29Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2022-07-27T21:43:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=48b323ed847ce0cb1a13e31d93781ca48e71f1ae'/>
<id>urn:sha1:48b323ed847ce0cb1a13e31d93781ca48e71f1ae</id>
<content type='text'>
Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit 1bc86c26253befa006c0f52eebb6ed633c7d1e5c)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170) (GH-92954)</title>
<updated>2022-06-06T16:46:16Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-06-06T16:46:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=067c37207449a5315abd6c3b8c0527145b6729b9'/>
<id>urn:sha1:067c37207449a5315abd6c3b8c0527145b6729b9</id>
<content type='text'>
(cherry picked from commit 2985feac4e02d590bb78bcce9e30864be53280ac)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893) (GH-26895)</title>
<updated>2021-06-24T14:34:34Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-24T14:34:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=71ba16b21cb35923098026117b5e6d823c5f5707'/>
<id>urn:sha1:71ba16b21cb35923098026117b5e6d823c5f5707</id>
<content type='text'>
(cherry picked from commit b5a52eef67997246b4235b5407e52a01e822ce56)

Co-authored-by: Erlend Egeberg Aasland &lt;erlend.aasland@innova.no&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25556)</title>
<updated>2021-04-23T14:37:09Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2021-04-23T14:37:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=82b6c0909aae423d9c8f4ff7d0e8df16106dbe28'/>
<id>urn:sha1:82b6c0909aae423d9c8f4ff7d0e8df16106dbe28</id>
<content type='text'>
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;.
(cherry picked from commit b9ad88be0304136c3fe5959c65a5d2c75490cd80)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25452)</title>
<updated>2021-04-17T09:35:56Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2021-04-17T09:35:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f77ca86f75d5ad9b52e5f3cd19c0024b204b168c'/>
<id>urn:sha1:f77ca86f75d5ad9b52e5f3cd19c0024b204b168c</id>
<content type='text'>
Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.
(cherry picked from commit 330b49e397168df789fd0dd20cfe7e81b8e47258)
</content>
</entry>
<entry>
<title>bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)</title>
<updated>2021-04-12T10:21:25Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-04-12T10:21:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04425a922b598d03770619b0c658ee9874113550'/>
<id>urn:sha1:04425a922b598d03770619b0c658ee9874113550</id>
<content type='text'>
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;
(cherry picked from commit 3447750073aff229b049e4ccd6217db2811dcfd1)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)</title>
<updated>2021-04-09T16:21:06Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-04-09T16:21:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e18ebd9ec546a3647a57c282735350f60a26d66d'/>
<id>urn:sha1:e18ebd9ec546a3647a57c282735350f60a26d66d</id>
<content type='text'>
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;
(cherry picked from commit 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372)

Co-authored-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
</feed>
