diff options
author | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@gmail.com> | 2022-06-21 18:57:52 +0700 |
commit | 84a1abd2bb12af82623c136243240e52a88e0bf4 (patch) | |
tree | 5a9828c8785a54c5b293ba484bdd0e2f2431600f /crypto/test | |
parent | Update copyright (diff) | |
download | BouncyCastle.NET-ed25519-84a1abd2bb12af82623c136243240e52a88e0bf4.tar.xz |
ObsoleteAttribute cleanup
Diffstat (limited to 'crypto/test')
-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)) |