File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,10 @@ module NetLdap {
32
32
NetLdapConnection ( ) { this in [ ldap ( ) .getAnInstantiation ( ) , ldap ( ) .getAMethodCall ( [ "open" ] ) ] }
33
33
34
34
predicate usesSsl ( ) {
35
- this .getKeywordArgument ( "encryption" ) .getConstantValue ( ) .isStringlikeValue ( "simple_tls" )
36
- or
37
- this .getAMethodCall ( "encryption" )
38
- .getArgument ( 0 )
39
- .getConstantValue ( )
40
- .isStringlikeValue ( ":simple_tls" )
41
- or
42
- this .getAMethodCall ( "encryption" )
43
- .getKeywordArgument ( "method" )
44
- .getConstantValue ( )
45
- .isStringlikeValue ( "simple_tls" )
35
+ [
36
+ this .getKeywordArgument ( "encryption" ) , this .getAMethodCall ( "encryption" ) .getArgument ( 0 ) ,
37
+ this .getAMethodCall ( "encryption" ) .getKeywordArgument ( "method" )
38
+ ] .getConstantValue ( ) .isStringlikeValue ( "simple_tls" )
46
39
}
47
40
48
41
DataFlow:: Node getAuthValue ( string arg ) {
You can’t perform that action at this time.
0 commit comments