diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-30 13:48:59 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-30 13:48:59 +0700 |
commit | 3e5ab53725678c662b5d351fb4a9bc2d3c5d8822 (patch) | |
tree | 8e492cfabb5965847e46b2a4aeb0430e4a202640 /crypto/src/x509/PrincipalUtil.cs | |
parent | Refactoring around digest calculation (diff) | |
download | BouncyCastle.NET-ed25519-3e5ab53725678c662b5d351fb4a9bc2d3c5d8822.tar.xz |
Add extra properties on X509Certificate
Diffstat (limited to 'crypto/src/x509/PrincipalUtil.cs')
-rw-r--r-- | crypto/src/x509/PrincipalUtil.cs | 9 |
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> |