C++: Rearrange the library.

This commit is contained in:
Geoffrey White
2021-05-13 08:38:58 +01:00
parent 0450caa73d
commit 40cf29b625
2 changed files with 13 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ abstract class InsecureCryptoSpec extends Locatable {
}
Function getAnInsecureFunction() {
result.getName().regexpMatch(getInsecureAlgorithmRegex()) and
isInsecureEncryption(result.getName()) and
exists(result.getACallToThisFunction())
}
@@ -36,7 +36,7 @@ class InsecureFunctionCall extends InsecureCryptoSpec, FunctionCall {
}
Macro getAnInsecureMacro() {
result.getName().regexpMatch(getInsecureAlgorithmRegex()) and
isInsecureEncryption(result.getName()) and
exists(result.getAnInvocation())
}