Skip to content

Commit 61095b3

Browse files
committed
ConceptsShared: Add deprecated DataFlow::Node CryptographicOperation#getInput() predicate
1 parent 976b040 commit 61095b3

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

javascript/ql/lib/semmle/javascript/internal/ConceptsShared.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ module Cryptography {
4343
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
4444
DataFlow::Node getAnInput() { result = super.getAnInput() }
4545

46+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
47+
deprecated final DataFlow::Node getInput() { result = super.getInput() }
48+
4649
/**
4750
* Gets the block mode used to perform this cryptographic operation.
4851
* This may have no result - for example if the `CryptographicAlgorithm` used
@@ -67,6 +70,9 @@ module Cryptography {
6770
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
6871
abstract DataFlow::Node getAnInput();
6972

73+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
74+
deprecated final DataFlow::Node getInput() { result = this.getAnInput() }
75+
7076
/**
7177
* Gets the block mode used to perform this cryptographic operation.
7278
* This may have no result - for example if the `CryptographicAlgorithm` used

python/ql/lib/semmle/python/internal/ConceptsShared.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ module Cryptography {
4343
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
4444
DataFlow::Node getAnInput() { result = super.getAnInput() }
4545

46+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
47+
deprecated final DataFlow::Node getInput() { result = super.getInput() }
48+
4649
/**
4750
* Gets the block mode used to perform this cryptographic operation.
4851
* This may have no result - for example if the `CryptographicAlgorithm` used
@@ -67,6 +70,9 @@ module Cryptography {
6770
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
6871
abstract DataFlow::Node getAnInput();
6972

73+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
74+
deprecated final DataFlow::Node getInput() { result = this.getAnInput() }
75+
7076
/**
7177
* Gets the block mode used to perform this cryptographic operation.
7278
* This may have no result - for example if the `CryptographicAlgorithm` used

ruby/ql/lib/codeql/ruby/internal/ConceptsShared.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ module Cryptography {
4343
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
4444
DataFlow::Node getAnInput() { result = super.getAnInput() }
4545

46+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
47+
deprecated final DataFlow::Node getInput() { result = super.getInput() }
48+
4649
/**
4750
* Gets the block mode used to perform this cryptographic operation.
4851
* This may have no result - for example if the `CryptographicAlgorithm` used
@@ -67,6 +70,9 @@ module Cryptography {
6770
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
6871
abstract DataFlow::Node getAnInput();
6972

73+
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
74+
deprecated final DataFlow::Node getInput() { result = this.getAnInput() }
75+
7076
/**
7177
* Gets the block mode used to perform this cryptographic operation.
7278
* This may have no result - for example if the `CryptographicAlgorithm` used

0 commit comments

Comments
 (0)