Skip to content

Commit b48b26e

Browse files
authored
[3.1.6] | Suppress CodeQL X509RevocationMode warning (#2539)
1 parent 4db5b55 commit b48b26e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,10 @@ private bool VerifyHealthReportAgainstRootCertificate(X509Certificate2Collection
246246
// An Always Encrypted-enabled driver doesn't verify an expiration date or a certificate authority chain.
247247
// A certificate is simply used as a key pair consisting of a public and private key. This is by design.
248248

249+
#pragma warning disable IA5352
249250
// CodeQL [SM00395] By design. Always Encrypted certificates should not be checked.
250251
chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
252+
#pragma warning restore IA5352
251253

252254
if (!chain.Build(healthReportCert))
253255
{

0 commit comments

Comments
 (0)