change useSsl() to usesSsl()

This commit is contained in:
Maiky
2023-08-03 16:18:44 +02:00
parent 345f43fbae
commit 2d87489dfa
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}
}

View File

@@ -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() }
}
}