[3.9] bpo-43920: Make load_verify_locations(cadata) error message con… · python/cpython@e259a77 · GitHub
Skip to content

Commit e259a77

Browse files
authored
[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25555)
Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit b9ad88b) Co-authored-by: Christian Heimes <christian@python.org>
1 parent d4fff1f commit e259a77

3 files changed

Lines changed: 26 additions & 10 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 8 additions & 3 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
OpenSSL 3.0.0: :meth:`~ssl.SSLContext.load_verify_locations` now returns a
2+
consistent error message when cadata contains no valid certificate.

Modules/_ssl.c

Lines changed: 16 additions & 7 deletions

0 commit comments

Comments
 (0)