Skip to content

Commit 6c35fea

Browse files
committed
ConceptsShared: add a default implementation of BlockMode CryptographicOperation#getBlockMode() for compatibility with external code
1 parent b968b59 commit 6c35fea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module Cryptography {
7878
* This may have no result - for example if the `CryptographicAlgorithm` used
7979
* is a stream cipher rather than a block cipher.
8080
*/
81-
abstract BlockMode getBlockMode();
81+
BlockMode getBlockMode() { none() }
8282
}
8383
}
8484

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module Cryptography {
7878
* This may have no result - for example if the `CryptographicAlgorithm` used
7979
* is a stream cipher rather than a block cipher.
8080
*/
81-
abstract BlockMode getBlockMode();
81+
BlockMode getBlockMode() { none() }
8282
}
8383
}
8484

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module Cryptography {
7878
* This may have no result - for example if the `CryptographicAlgorithm` used
7979
* is a stream cipher rather than a block cipher.
8080
*/
81-
abstract BlockMode getBlockMode();
81+
BlockMode getBlockMode() { none() }
8282
}
8383
}
8484

0 commit comments

Comments
 (0)