summary refs log tree commit diff
path: root/crypto/src/x509/X509Crl.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-22 00:34:26 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-22 00:34:26 +0700
commit93cf36b2759f68aa680e5eed37be0a29f039a6c2 (patch)
tree5afeb9cce7be5d0e0dd59024cb86a2d5164c994e /crypto/src/x509/X509Crl.cs
parentHold boolean instead of the parser (diff)
downloadBouncyCastle.NET-ed25519-93cf36b2759f68aa680e5eed37be0a29f039a6c2.tar.xz
Refactoring
Diffstat (limited to 'crypto/src/x509/X509Crl.cs')
-rw-r--r--crypto/src/x509/X509Crl.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/x509/X509Crl.cs b/crypto/src/x509/X509Crl.cs
index 5cf4bd53c..a5aabf974 100644
--- a/crypto/src/x509/X509Crl.cs
+++ b/crypto/src/x509/X509Crl.cs
@@ -429,15 +429,12 @@ namespace Org.BouncyCastle.X509
 
 			if (certs != null)
 			{
-//				BigInteger serial = ((X509Certificate)cert).SerialNumber;
 				BigInteger serial = cert.SerialNumber;
 
 				for (int i = 0; i < certs.Length; i++)
 				{
-					if (certs[i].UserCertificate.Value.Equals(serial))
-					{
+					if (certs[i].UserCertificate.HasValue(serial))
 						return true;
-					}
 				}
 			}