mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
381 B
Plaintext
15 lines
381 B
Plaintext
import default
|
|
import semmle.code.cpp.security.Encryption
|
|
|
|
string describe(Function f) {
|
|
f.getName().regexpMatch(getSecureAlgorithmRegex()) and
|
|
result = "getSecureAlgorithmRegex"
|
|
or
|
|
f.getName().regexpMatch(getInsecureAlgorithmRegex()) and
|
|
result = "getInsecureAlgorithmRegex"
|
|
}
|
|
|
|
from Function f
|
|
where exists(f.getLocation().getFile())
|
|
select f, concat(describe(f), ", ")
|