diff options
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/cmp/RevAnnContent.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/crypto/src/asn1/cmp/RevAnnContent.cs b/crypto/src/asn1/cmp/RevAnnContent.cs index cdd26c39f..1d3957759 100644 --- a/crypto/src/asn1/cmp/RevAnnContent.cs +++ b/crypto/src/asn1/cmp/RevAnnContent.cs @@ -8,13 +8,16 @@ namespace Org.BouncyCastle.Asn1.Cmp { public static RevAnnContent GetInstance(object obj) { - if (obj is RevAnnContent revAnnContent) - return revAnnContent; - - if (obj != null) - return new RevAnnContent(Asn1Sequence.GetInstance(obj)); + if (obj == null) + return null; + if (obj is RevAnnContent revAnnContent) + return revAnnContent; + return new RevAnnContent(Asn1Sequence.GetInstance(obj)); + } - return null; + public static RevAnnContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) + { + return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit)); } private readonly PkiStatusEncodable m_status; |