Refactor DataFlow configurations to use "Config" naming convention

This commit is contained in:
Ed Minnix
2023-03-19 17:44:07 -04:00
parent b0f803759c
commit 2d5944fb0e
25 changed files with 67 additions and 70 deletions

View File

@@ -28,7 +28,7 @@ class BrokenAlgoLiteral extends ShortStringLiteral {
}
}
module InsecureCryptoConfiguration implements ConfigSig {
module InsecureCryptoConfig implements ConfigSig {
predicate isSource(Node n) { n.asExpr() instanceof BrokenAlgoLiteral }
predicate isSink(Node n) { exists(CryptoAlgoSpec c | n.asExpr() = c.getAlgoSpec()) }
@@ -38,7 +38,7 @@ module InsecureCryptoConfiguration implements ConfigSig {
}
}
module InsecureCryptoFlow = TaintTracking::Make<InsecureCryptoConfiguration>;
module InsecureCryptoFlow = TaintTracking::Make<InsecureCryptoConfig>;
import InsecureCryptoFlow::PathGraph

View File

@@ -50,7 +50,7 @@ class StringContainer extends RefType {
}
}
module InsecureCryptoConfiguration implements ConfigSig {
module InsecureCryptoConfig implements ConfigSig {
predicate isSource(Node n) { n.asExpr() instanceof InsecureAlgoLiteral }
predicate isSink(Node n) { exists(CryptoAlgoSpec c | n.asExpr() = c.getAlgoSpec()) }
@@ -61,7 +61,7 @@ module InsecureCryptoConfiguration implements ConfigSig {
}
}
module InsecureCryptoFlow = TaintTracking::Make<InsecureCryptoConfiguration>;
module InsecureCryptoFlow = TaintTracking::Make<InsecureCryptoConfig>;
import InsecureCryptoFlow::PathGraph