mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C#: Log warning when chain or certificate is not provided in the validation.
This commit is contained in:
@@ -606,6 +606,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
{
|
||||
if (chain is null || cert is null)
|
||||
{
|
||||
logger.LogWarning("Certificate validation trivially failed due to missing chain or certificate.");
|
||||
return false;
|
||||
}
|
||||
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;
|
||||
|
||||
Reference in New Issue
Block a user