mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
change useSsl() to usesSsl()
This commit is contained in:
@@ -1220,7 +1220,7 @@ class LdapBind extends DataFlow::Node instanceof LdapBind::Range {
|
||||
}
|
||||
|
||||
/** Holds if the binding process use SSL. */
|
||||
predicate useSsl() { super.useSsl() }
|
||||
predicate usesSsl() { super.usesSsl() }
|
||||
}
|
||||
|
||||
/** Provides classes for modeling LDAP bind-related APIs. */
|
||||
@@ -1239,6 +1239,6 @@ module LdapBind {
|
||||
abstract DataFlow::Node getPassword();
|
||||
|
||||
/** Holds if the binding process use SSL. */
|
||||
abstract predicate useSsl();
|
||||
abstract predicate usesSsl();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ module NetLdap {
|
||||
private class NetLdapConnection extends DataFlow::CallNode {
|
||||
NetLdapConnection() { this in [ldap().getAnInstantiation(), ldap().getAMethodCall(["open"])] }
|
||||
|
||||
predicate useSsl() {
|
||||
predicate usesSsl() {
|
||||
this.getKeywordArgument("encryption").getConstantValue().isStringlikeValue("simple_tls")
|
||||
or
|
||||
this.getAMethodCall("encryption")
|
||||
@@ -84,6 +84,6 @@ module NetLdap {
|
||||
result = l.getAMethodCall("auth").getArgument(1)
|
||||
}
|
||||
|
||||
override predicate useSsl() { l.useSsl() }
|
||||
override predicate usesSsl() { l.usesSsl() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user