mirror of
https://github.com/github/codeql.git
synced 2026-02-15 06:23:42 +01:00
Adding SslEncryptPacket sink.
This commit is contained in:
@@ -95,6 +95,22 @@ class NCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Argument at index 1 of call to NCryptEncrypt:
|
||||
* _Inout_ NCRYPT_KEY_HANDLE hKey,
|
||||
*/
|
||||
class SslEncryptPacketArgumentSink extends BCryptOpenAlgorithmProviderSink {
|
||||
int index;
|
||||
string funcName;
|
||||
|
||||
SslEncryptPacketArgumentSink() {
|
||||
index = 1 and
|
||||
funcName = "SslEncryptPacket" and
|
||||
isCallArgument(funcName, this.asExpr(), index)
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------- Default SOURCES -----------------------
|
||||
/**
|
||||
* A string identifier of known PQC vulnerable algorithms.
|
||||
|
||||
Reference in New Issue
Block a user