We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ed36f commit bc098a3Copy full SHA for bc098a3
python-stdlib/ssl/ssl.py
@@ -6,6 +6,7 @@ class SSLContext:
6
def __init__(self, *args):
7
self._context = tls.SSLContext(*args)
8
self._context.verify_mode = CERT_NONE
9
+ self._context.ecdsa_sign_callback = None
10
11
@property
12
def verify_mode(self):
@@ -15,6 +16,14 @@ def verify_mode(self):
15
16
def verify_mode(self, val):
17
self._context.verify_mode = val
18
19
+ @property
20
+ def ecdsa_sign_callback(self):
21
+ return self._context.ecdsa_sign_callback
22
+
23
+ @ecdsa_sign_callback.setter
24
+ def ecdsa_sign_callback(self, val):
25
+ self._context.ecdsa_sign_callback = val
26
27
def load_cert_chain(self, certfile, keyfile):
28
if isinstance(certfile, str):
29
with open(certfile, "rb") as f:
0 commit comments