summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 17:35:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 17:35:46 +0700
commit32c9881dae69931c1c5a175d596768d7bdfafbc2 (patch)
treeb6d8318a933347f9bb27fb027fe7a24ee1f00f64 /crypto
parentRefactor singleton initialization (diff)
downloadBouncyCastle.NET-ed25519-32c9881dae69931c1c5a175d596768d7bdfafbc2.tar.xz
Avoid recoding issuer name
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/pkix/Rfc3280CertPathUtilities.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/crypto/src/pkix/Rfc3280CertPathUtilities.cs b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
index 5a13ccd1d..b2d47c0f1 100644
--- a/crypto/src/pkix/Rfc3280CertPathUtilities.cs
+++ b/crypto/src/pkix/Rfc3280CertPathUtilities.cs
@@ -1105,17 +1105,8 @@ namespace Org.BouncyCastle.Pkix
 					 * omitted and a distribution point name of the certificate
 					 * issuer.
 					 */
-					X509Name issuer;
-					try
-					{
-						issuer = X509Name.GetInstance(cert.IssuerDN.GetEncoded());
-					}
-					catch (Exception e)
-					{
-						throw new Exception("Issuer from certificate for CRL could not be reencoded.", e);
-					}
 					DistributionPoint dp = new DistributionPoint(new DistributionPointName(0, new GeneralNames(
-						new GeneralName(GeneralName.DirectoryName, issuer))), null, null);
+						new GeneralName(GeneralName.DirectoryName, cert.IssuerDN))), null, null);
 					PkixParameters paramsPKIXClone = (PkixParameters)paramsPKIX.Clone();
 
 					CheckCrl(dp, paramsPKIXClone, cert, validDate, sign, workingPublicKey, certStatus, reasonsMask,