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/X509Crl.cs | |
parent | Hold boolean instead of the parser (diff) | |
download | BouncyCastle.NET-ed25519-93cf36b2759f68aa680e5eed37be0a29f039a6c2.tar.xz |
Refactoring
Diffstat (limited to '')
-rw-r--r-- | crypto/src/x509/X509Crl.cs | 5 |
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; - } } } |