From 4286f2e5bb82779231fa48e4e6b1ca89a12da8c4 Mon Sep 17 00:00:00 2001 From: Travis Walker Date: Thu, 2 Apr 2020 11:35:38 -0700 Subject: [PATCH] Disabling warning for the CRL check in the android broker flow (#1738) Co-authored-by: Trwalke --- .../Platforms/Android/AndroidBrokerHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/Microsoft.Identity.Client/Platforms/Android/AndroidBrokerHelper.cs b/src/client/Microsoft.Identity.Client/Platforms/Android/AndroidBrokerHelper.cs index 1513f2e7c0..c59d9ccbe7 100644 --- a/src/client/Microsoft.Identity.Client/Platforms/Android/AndroidBrokerHelper.cs +++ b/src/client/Microsoft.Identity.Client/Platforms/Android/AndroidBrokerHelper.cs @@ -510,7 +510,9 @@ private void VerifyCertificateChain(List certificates) X509Chain chain = new X509Chain(); chain.ChainPolicy = new X509ChainPolicy() { +#pragma warning disable IA5352 //Certificates are not published to a CRL when revoked for broker so this check cannot be made RevocationMode = X509RevocationMode.NoCheck +#pragma warning restore IA5352 }; chain.ChainPolicy.ExtraStore.AddRange(collection);