File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,17 @@ class SSLSocket(socket.socket):
211
211
def pending (self ) -> int : ...
212
212
213
213
214
+ if sys .version_info >= (3 , 7 ):
215
+ class TLSVersion (enum .IntEnum ):
216
+ MINIMUM_SUPPORTED = ...
217
+ MAXIMUM_SUPPORTED = ...
218
+ SSLv3 = ...
219
+ TLSv1 = ...
220
+ TLSv1_1 = ...
221
+ TLSv1_2 = ...
222
+ TLSv1_3 = ...
223
+
224
+
214
225
class SSLContext :
215
226
if sys .version_info < (3 ,) or sys .version_info >= (3 , 4 ):
216
227
check_hostname : bool
@@ -257,6 +268,9 @@ class SSLContext:
257
268
server_side : bool = ...,
258
269
server_hostname : Optional [str ] = ...) -> SSLObject : ...
259
270
def session_stats (self ) -> Dict [str , int ]: ...
271
+ if sys .version_info >= (3 , 7 ):
272
+ maximum_version : TLSVersion
273
+ minimum_version : TLSVersion
260
274
261
275
262
276
if sys .version_info >= (3 , 5 ):
You can’t perform that action at this time.
0 commit comments