Commit 89599a9 1 parent 8ecb86f commit 89599a9 Copy full SHA for 89599a9
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
6
6
7
+ ## Dev
8
+
9
+ * Fix SSL case where ` verify=False ` together with client side certificates.
10
+
7
11
## 0.28.0 (28th November, 2024)
8
12
9
13
The 0.28 release includes a limited set of deprecations.
Original file line number Diff line number Diff line change @@ -39,10 +39,9 @@ def create_ssl_context(
39
39
# Default case...
40
40
ctx = ssl .create_default_context (cafile = certifi .where ())
41
41
elif verify is False :
42
- ssl_context = ssl .SSLContext (ssl .PROTOCOL_TLS_CLIENT )
43
- ssl_context .check_hostname = False
44
- ssl_context .verify_mode = ssl .CERT_NONE
45
- return ssl_context
42
+ ctx = ssl .SSLContext (ssl .PROTOCOL_TLS_CLIENT )
43
+ ctx .check_hostname = False
44
+ ctx .verify_mode = ssl .CERT_NONE
46
45
elif isinstance (verify , str ): # pragma: nocover
47
46
message = (
48
47
"`verify=<str>` is deprecated. "
You can’t perform that action at this time.
0 commit comments