From d4978555b33327c750d59dc2cf2aa9874d122964 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 7 Feb 2023 17:19:28 +0700 Subject: Misc. refactoring --- crypto/src/x509/X509Crl.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'crypto/src/x509') diff --git a/crypto/src/x509/X509Crl.cs b/crypto/src/x509/X509Crl.cs index a3f08a0ed..3780d277a 100644 --- a/crypto/src/x509/X509Crl.cs +++ b/crypto/src/x509/X509Crl.cs @@ -404,15 +404,7 @@ namespace Org.BouncyCastle.X509 * @return true if the given certificate is on this CRL, * false otherwise. */ -// public bool IsRevoked( -// Certificate cert) -// { -// if (!cert.getType().Equals("X.509")) -// { -// throw new RuntimeException("X.509 CRL used with non X.509 Cert"); -// } - public virtual bool IsRevoked( - X509Certificate cert) + public virtual bool IsRevoked(X509Certificate cert) { CrlEntry[] certs = c.GetRevokedCertificates(); -- cgit 1.4.1