summary refs log tree commit diff
path: root/crypto/src/cms/CMSUtils.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/CMSUtils.cs')
-rw-r--r--crypto/src/cms/CMSUtils.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/CMSUtils.cs b/crypto/src/cms/CMSUtils.cs

index 99258c995..aa25870e6 100644 --- a/crypto/src/cms/CMSUtils.cs +++ b/crypto/src/cms/CMSUtils.cs
@@ -178,7 +178,7 @@ namespace Org.BouncyCastle.Cms internal static TbsCertificateStructure GetTbsCertificateStructure(X509Certificate cert) { - return TbsCertificateStructure.GetInstance(Asn1Object.FromByteArray(cert.GetTbsCertificate())); + return cert.CertificateStructure.TbsCertificate; } internal static IssuerAndSerialNumber GetIssuerAndSerialNumber(X509Certificate cert)