Skip to content

Commit 1135fbe

Browse files
committed
Fix EVP_Hash_Initializer typo
1 parent 1d8a57e commit 1135fbe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/EVPHashInitializer.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import cpp
22

3-
abstract class EVP_Hash_Inititalizer extends Call {
3+
abstract class EVP_Hash_Initializer extends Call {
44
Expr getContextArg() { result = this.(Call).getArgument(0) }
55

66
abstract Expr getAlgorithmArg();
77
}
88

9-
class EVP_DigestInit_Variant_Calls extends EVP_Hash_Inititalizer {
9+
class EVP_DigestInit_Variant_Calls extends EVP_Hash_Initializer {
1010
EVP_DigestInit_Variant_Calls() {
1111
this.(Call).getTarget().getName() in [
1212
"EVP_DigestInit", "EVP_DigestInit_ex", "EVP_DigestInit_ex2"

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/EVPHashOperation.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import experimental.quantum.OpenSSL.AlgorithmValueConsumers.OpenSSLAlgorithmValu
1313
abstract class EVP_Hash_Operation extends OpenSSLOperation, Crypto::HashOperationInstance {
1414
Expr getContextArg() { result = this.(Call).getArgument(0) }
1515

16-
EVP_Hash_Inititalizer getInitCall() {
16+
EVP_Hash_Initializer getInitCall() {
1717
CTXFlow::ctxArgFlowsToCtxArg(result.getContextArg(), this.getContextArg())
1818
}
1919
}
@@ -38,7 +38,7 @@ class EVP_Q_Digest_Operation extends EVP_Hash_Operation {
3838
}
3939

4040
//override Crypto::AlgorithmConsumer getAlgorithmConsumer() { }
41-
override EVP_Hash_Inititalizer getInitCall() {
41+
override EVP_Hash_Initializer getInitCall() {
4242
// This variant of digest does not use an init
4343
// and even if it were used, the init would be ignored/undefined
4444
none()
@@ -74,7 +74,7 @@ class EVP_Digest_Operation extends EVP_Hash_Operation {
7474
DataFlow::exprNode(this.(Call).getArgument(4)))
7575
}
7676

77-
override EVP_Hash_Inititalizer getInitCall() {
77+
override EVP_Hash_Initializer getInitCall() {
7878
// This variant of digest does not use an init
7979
// and even if it were used, the init would be ignored/undefined
8080
none()

0 commit comments

Comments
 (0)