diff options
Diffstat (limited to 'crypto/test/src/asn1/test/PKCS10Test.cs')
-rw-r--r-- | crypto/test/src/asn1/test/PKCS10Test.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/test/src/asn1/test/PKCS10Test.cs b/crypto/test/src/asn1/test/PKCS10Test.cs index 28736b816..8bb6ccf0e 100644 --- a/crypto/test/src/asn1/test/PKCS10Test.cs +++ b/crypto/test/src/asn1/test/PKCS10Test.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using NUnit.Framework; @@ -46,8 +45,7 @@ namespace Org.BouncyCastle.Asn1.Tests { try { - CertificationRequest r = new CertificationRequest( - (Asn1Sequence)Asn1Object.FromByteArray(req)); + CertificationRequest r = CertificationRequest.GetInstance(req); byte[] bytes = r.GetDerEncoded(); if (!Arrays.AreEqual(bytes, req)) |