mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Fix query compilation errors
This commit is contained in:
@@ -117,7 +117,7 @@ abstract class RandomnessInstance extends Crypto::RandomNumberGenerationInstance
|
||||
override DataFlow::Node getOutputNode() { result.asExpr() = this }
|
||||
}
|
||||
|
||||
private class SecureRandomnessInstance extends RandomnessInstance {
|
||||
class SecureRandomnessInstance extends RandomnessInstance {
|
||||
RandomDataSource source;
|
||||
|
||||
SecureRandomnessInstance() {
|
||||
@@ -128,7 +128,7 @@ private class SecureRandomnessInstance extends RandomnessInstance {
|
||||
override string getGeneratorName() { result = source.getSourceOfRandomness().getQualifiedName() }
|
||||
}
|
||||
|
||||
private class InsecureRandomnessInstance extends RandomnessInstance {
|
||||
class InsecureRandomnessInstance extends RandomnessInstance {
|
||||
RandomDataSource source;
|
||||
|
||||
InsecureRandomnessInstance() {
|
||||
|
||||
@@ -11,4 +11,4 @@ import java
|
||||
import experimental.quantum.Language
|
||||
|
||||
from Crypto::AsymmetricAlgorithmNode a
|
||||
select a, a.getAlgorithmName()
|
||||
select a, a.asAlgorithmNode().getAlgorithmName()
|
||||
|
||||
@@ -12,4 +12,4 @@ import experimental.quantum.Language
|
||||
|
||||
from Crypto::OperationNode op, Crypto::AsymmetricAlgorithmNode a
|
||||
where a = op.getAKnownAlgorithm()
|
||||
select op, a.getAlgorithmName()
|
||||
select op, a.asAlgorithmNode().getAlgorithmName()
|
||||
|
||||
@@ -1584,7 +1584,9 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
|
||||
this.(KeyOperationAlgorithmNode).isAsymmetric()
|
||||
}
|
||||
|
||||
string toString() { result = super.getAlgorithmName() }
|
||||
string toString() { result = super.toString() }
|
||||
|
||||
AlgorithmNode asAlgorithmNode() { result = this }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user