summary refs log tree commit diff
path: root/crypto/src/x509/PrincipalUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/x509/PrincipalUtil.cs')
-rw-r--r--crypto/src/x509/PrincipalUtil.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/crypto/src/x509/PrincipalUtil.cs b/crypto/src/x509/PrincipalUtil.cs
index 733da1dca..fb1b01b40 100644
--- a/crypto/src/x509/PrincipalUtil.cs
+++ b/crypto/src/x509/PrincipalUtil.cs
@@ -1,9 +1,4 @@
-using System;
-using System.IO;
-
-using Org.BouncyCastle.Asn1;
 using Org.BouncyCastle.Asn1.X509;
-using Org.BouncyCastle.Security.Certificates;
 
 namespace Org.BouncyCastle.X509
 {
@@ -20,13 +15,13 @@ namespace Org.BouncyCastle.X509
 		/// <summary>Return the issuer of the given cert as an X509Principal.</summary>
 		public static X509Name GetIssuerX509Principal(X509Certificate cert)
 		{
-            return cert.CertificateStructure.TbsCertificate.Issuer;
+            return cert.TbsCertificate.Issuer;
 		}
 
 		/// <summary>Return the subject of the given cert as an X509Principal.</summary>
 		public static X509Name GetSubjectX509Principal(X509Certificate cert)
 		{
-            return cert.CertificateStructure.TbsCertificate.Subject;
+            return cert.TbsCertificate.Subject;
 		}
 
 		/// <summary>Return the issuer of the given CRL as an X509Principal.</summary>