diff options
Diffstat (limited to 'crypto/src/asn1/cmp/RevReqContent.cs')
-rw-r--r-- | crypto/src/asn1/cmp/RevReqContent.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/crypto/src/asn1/cmp/RevReqContent.cs b/crypto/src/asn1/cmp/RevReqContent.cs index c390530a8..eea65869e 100644 --- a/crypto/src/asn1/cmp/RevReqContent.cs +++ b/crypto/src/asn1/cmp/RevReqContent.cs @@ -1,7 +1,3 @@ -using System; - -using Org.BouncyCastle.Utilities; - namespace Org.BouncyCastle.Asn1.Cmp { public class RevReqContent @@ -9,13 +5,16 @@ namespace Org.BouncyCastle.Asn1.Cmp { public static RevReqContent GetInstance(object obj) { - if (obj is RevReqContent revReqContent) - return revReqContent; - - if (obj != null) - return new RevReqContent(Asn1Sequence.GetInstance(obj)); + if (obj == null) + return null; + if (obj is RevReqContent revReqContent) + return revReqContent; + return new RevReqContent(Asn1Sequence.GetInstance(obj)); + } - return null; + public static RevReqContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) + { + return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit)); } private readonly Asn1Sequence m_content; |