mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
apply suggestions from Python review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
committed by
GitHub
parent
78ba7650b3
commit
7704a9eeac
@@ -1845,7 +1845,7 @@ private module StdlibPrivate {
|
||||
deprecated module SimpleHTTPServer = SimpleHttpServer;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// CgiHttpServer (Python 2 only)
|
||||
// CGIHTTPServer (Python 2 only)
|
||||
// ---------------------------------------------------------------------------
|
||||
/** Gets a reference to the `CGIHTTPServer` module. */
|
||||
API::Node cgiHttpServer() { result = API::moduleImport("CGIHTTPServer") }
|
||||
|
||||
@@ -24,9 +24,6 @@ class PyOpenSslContextCreation extends ContextCreation, DataFlow::CallCfgNode {
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for PyOpenSslContextCreation */
|
||||
deprecated class PyOpenSSLContextCreation = PyOpenSslContextCreation;
|
||||
|
||||
class ConnectionCall extends ConnectionCreation, DataFlow::CallCfgNode {
|
||||
ConnectionCall() {
|
||||
this = API::moduleImport("OpenSSL").getMember("SSL").getMember("Connection").getACall()
|
||||
@@ -58,9 +55,6 @@ class UnspecificPyOpenSslContextCreation extends PyOpenSslContextCreation, Unspe
|
||||
UnspecificPyOpenSslContextCreation() { library instanceof PyOpenSsl }
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for UnspecificPyOpenSslContextCreation */
|
||||
deprecated class UnspecificPyOpenSSLContextCreation = UnspecificPyOpenSslContextCreation;
|
||||
|
||||
class PyOpenSsl extends TlsLibrary {
|
||||
PyOpenSsl() { this = "pyOpenSSL" }
|
||||
|
||||
@@ -89,6 +83,3 @@ class PyOpenSsl extends TlsLibrary {
|
||||
result instanceof UnspecificPyOpenSslContextCreation
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for PyOpenSsl */
|
||||
deprecated class PyOpenSSL = PyOpenSsl;
|
||||
|
||||
@@ -27,9 +27,6 @@ class SslContextCreation extends ContextCreation, DataFlow::CallCfgNode {
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for SslContextCreation */
|
||||
deprecated class SSLContextCreation = SslContextCreation;
|
||||
|
||||
class SslDefaultContextCreation extends ContextCreation {
|
||||
SslDefaultContextCreation() {
|
||||
this = API::moduleImport("ssl").getMember("create_default_context").getACall()
|
||||
@@ -40,9 +37,6 @@ class SslDefaultContextCreation extends ContextCreation {
|
||||
override string getProtocol() { result = "TLS" }
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for SslDefaultContextCreation */
|
||||
deprecated class SSLDefaultContextCreation = SslDefaultContextCreation;
|
||||
|
||||
/** Gets a reference to an `ssl.Context` instance. */
|
||||
API::Node sslContextInstance() {
|
||||
result = API::moduleImport("ssl").getMember(["SSLContext", "create_default_context"]).getReturn()
|
||||
@@ -178,9 +172,6 @@ class UnspecificSslContextCreation extends SslContextCreation, UnspecificContext
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for UnspecificSslContextCreation */
|
||||
deprecated class UnspecificSSLContextCreation = UnspecificSslContextCreation;
|
||||
|
||||
class UnspecificSslDefaultContextCreation extends SslDefaultContextCreation, ProtocolUnrestriction {
|
||||
override DataFlow::Node getContext() { result = this }
|
||||
|
||||
@@ -190,9 +181,6 @@ class UnspecificSslDefaultContextCreation extends SslDefaultContextCreation, Pro
|
||||
}
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for UnspecificSslDefaultContextCreation */
|
||||
deprecated class UnspecificSSLDefaultContextCreation = UnspecificSslDefaultContextCreation;
|
||||
|
||||
class Ssl extends TlsLibrary {
|
||||
Ssl() { this = "ssl" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user