summaryrefslogtreecommitdiff
path: root/dev-python/imapclient/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/imapclient/files
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/imapclient/files')
-rwxr-xr-xdev-python/imapclient/files/imapclient-2.2.0-ssl-context.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/imapclient/files/imapclient-2.2.0-ssl-context.patch b/dev-python/imapclient/files/imapclient-2.2.0-ssl-context.patch
new file mode 100755
index 000000000000..b3a12823f6a5
--- /dev/null
+++ b/dev-python/imapclient/files/imapclient-2.2.0-ssl-context.patch
@@ -0,0 +1,13 @@
+https://github.com/mjs/imapclient/issues/466
+https://bugs.gentoo.org/835498
+--- a/imapclient/tls.py
++++ b/imapclient/tls.py
+@@ -27,7 +27,7 @@ def wrap_socket(sock, ssl_context, host):
+ return ssl.wrap_socket(sock)
+
+ if ssl_context is None:
+- ssl_context = ssl.create_default_context()
++ ssl_context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH)
+
+ return ssl_context.wrap_socket(sock, server_hostname=host)
+