mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: One family to rule them all...
This commit is contained in:
@@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user