Files
codeql/cpp/ql/test/library-tests/security/encryption/test.ql
Geoffrey White 8bdcc47a50 C++: Add a test.
2020-06-30 17:46:08 +01:00

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), ", ")