Skip to content

Commit a1f047e

Browse files
committed
ssl: Implement SSLSession support.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
1 parent 50ed36f commit a1f047e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python-stdlib/ssl/ssl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ def load_verify_locations(self, cafile=None, cadata=None):
3131
self._context.load_verify_locations(cadata)
3232

3333
def wrap_socket(
34-
self, sock, server_side=False, do_handshake_on_connect=True, server_hostname=None
34+
self, sock, server_side=False, do_handshake_on_connect=True, server_hostname=None, session=None,
3535
):
3636
return self._context.wrap_socket(
3737
sock,
3838
server_side=server_side,
3939
do_handshake_on_connect=do_handshake_on_connect,
4040
server_hostname=server_hostname,
41+
session=session,
4142
)
4243

4344

@@ -50,6 +51,7 @@ def wrap_socket(
5051
cadata=None,
5152
server_hostname=None,
5253
do_handshake=True,
54+
session=None,
5355
):
5456
con = SSLContext(PROTOCOL_TLS_SERVER if server_side else PROTOCOL_TLS_CLIENT)
5557
if cert or key:
@@ -62,4 +64,5 @@ def wrap_socket(
6264
server_side=server_side,
6365
do_handshake_on_connect=do_handshake,
6466
server_hostname=server_hostname,
67+
session=session,
6568
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy