Python: One family to rule them all...

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-04-07 08:32:21 +02:00
parent a0e3e3afaf
commit f22db2a30b

View File

@@ -71,15 +71,10 @@ abstract class UnspecificContextCreation extends ContextCreation, ProtocolUnrest
override DataFlow::CfgNode getContext() { result = this } override DataFlow::CfgNode getContext() { result = this }
override ProtocolVersion getUnrestriction() { override ProtocolVersion getUnrestriction() {
// see https://www.openssl.org/docs/man1.1.0/man3/TLS_method.html // There is only one family, the two names are aliases in OpenSSL.
family = "TLS" and // see https://github.com/openssl/openssl/blob/13888e797c5a3193e91d71e5f5a196a2d68d266f/include/openssl/ssl.h.in#L1953-L1955
result in ["SSLv3", "TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"] family in ["SSLv23", "TLS"] and
or // see https://docs.python.org/3/library/ssl.html#ssl-contexts
// This can negotiate a TLS 1.3 connection (!)
// see
// - https://docs.python.org/3/library/ssl.html#ssl-contexts
// - https://www.openssl.org/docs/man1.0.2/man3/TLSv1_method.html
family = "SSLv23" and
result in ["SSLv2", "SSLv3", "TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"] result in ["SSLv2", "SSLv3", "TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"]
} }
} }