Skip to content

Commit a9d5745

Browse files
committed
C++: Autoformat.
1 parent 3a83ff5 commit a9d5745

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

cpp/ql/src/Security/CWE/CWE-327/BrokenCryptoAlgorithm.ql

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,12 @@ Macro getAdditionalEvidenceMacro() {
5555
/**
5656
* An enum constant which may relate to an insecure encryption algorithm.
5757
*/
58-
EnumConstant getAnInsecureEncryptionEnumConst() {
59-
isInsecureEncryption(result.getName())
60-
}
58+
EnumConstant getAnInsecureEncryptionEnumConst() { isInsecureEncryption(result.getName()) }
6159

6260
/**
6361
* An enum constant with additional evidence it is related to encryption.
6462
*/
65-
EnumConstant getAdditionalEvidenceEnumConst() {
66-
isEncryptionAdditionalEvidence(result.getName())
67-
}
63+
EnumConstant getAdditionalEvidenceEnumConst() { isEncryptionAdditionalEvidence(result.getName()) }
6864

6965
/**
7066
* A function call we have a high confidence is related to use of an insecure
@@ -111,14 +107,11 @@ class InsecureFunctionCall extends FunctionCall {
111107
)
112108
}
113109

114-
Element getBlame() {
115-
result = blame
116-
}
110+
Element getBlame() { result = blame }
117111

118-
string getDescription() {
119-
result = explain
120-
}
112+
string getDescription() { result = explain }
121113
}
122114

123115
from InsecureFunctionCall c
124-
select c.getBlame(), "This " + c.getDescription() + " specifies a broken or weak cryptographic algorithm."
116+
select c.getBlame(),
117+
"This " + c.getDescription() + " specifies a broken or weak cryptographic algorithm."

cpp/ql/src/semmle/code/cpp/security/Encryption.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ predicate isInsecureEncryption(string name) {
6060
not name.toUpperCase().regexpMatch(".*TRIPLE.*")
6161
}
6262

63-
/**
63+
/**
6464
* Holds if there is additional evidence that `name` looks like it might be
6565
* related to operations with an encyption algorithm, besides the name of a
6666
* specific algorithm. This can be used in conjuction with

0 commit comments

Comments
 (0)