diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-22 00:34:26 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-22 00:34:26 +0700 |
commit | 93cf36b2759f68aa680e5eed37be0a29f039a6c2 (patch) | |
tree | 5afeb9cce7be5d0e0dd59024cb86a2d5164c994e /crypto/src/x509/AttributeCertificateIssuer.cs | |
parent | Hold boolean instead of the parser (diff) | |
download | BouncyCastle.NET-ed25519-93cf36b2759f68aa680e5eed37be0a29f039a6c2.tar.xz |
Refactoring
Diffstat (limited to 'crypto/src/x509/AttributeCertificateIssuer.cs')
-rw-r--r-- | crypto/src/x509/AttributeCertificateIssuer.cs | 10 |
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); } |