summary refs log tree commit diff
path: root/crypto/src/x509/AttributeCertificateIssuer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/x509/AttributeCertificateIssuer.cs')
-rw-r--r--crypto/src/x509/AttributeCertificateIssuer.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/crypto/src/x509/AttributeCertificateIssuer.cs b/crypto/src/x509/AttributeCertificateIssuer.cs
index 7df1416d3..39fc04f34 100644
--- a/crypto/src/x509/AttributeCertificateIssuer.cs
+++ b/crypto/src/x509/AttributeCertificateIssuer.cs
@@ -136,22 +136,14 @@ namespace Org.BouncyCastle.X509
 		}
 
 		public bool Match(
-//			Certificate cert)
 			X509Certificate x509Cert)
 		{
-//			if (!(cert is X509Certificate))
-//			{
-//				return false;
-//			}
-//
-//			X509Certificate x509Cert = (X509Certificate)cert;
-
 			if (form is V2Form)
 			{
 				V2Form issuer = (V2Form) form;
 				if (issuer.BaseCertificateID != null)
 				{
-					return issuer.BaseCertificateID.Serial.Value.Equals(x509Cert.SerialNumber)
+					return issuer.BaseCertificateID.Serial.HasValue(x509Cert.SerialNumber)
 						&& MatchesDN(x509Cert.IssuerDN, issuer.BaseCertificateID.Issuer);
 				}