Python: handle default argument

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-03-27 02:40:13 +01:00
parent 7a511c5682
commit 16902c2f56

View File

@@ -160,6 +160,10 @@ class UnspecificSSLContextCreation extends SSLContextCreation, UnspecificContext
// These are turned off by default
// see https://docs.python.org/3/library/ssl.html#ssl-contexts
not result in ["SSLv2", "SSLv3"]
or
// The default argument is TLS and the SSL versions are turned off by default.
not exists(this.getProtocol()) and
result in ["TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"]
}
}