diff options
Diffstat (limited to 'crypto/src/asn1/x509/GeneralNames.cs')
-rw-r--r-- | crypto/src/asn1/x509/GeneralNames.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/x509/GeneralNames.cs b/crypto/src/asn1/x509/GeneralNames.cs index 3937b3279..40685086e 100644 --- a/crypto/src/asn1/x509/GeneralNames.cs +++ b/crypto/src/asn1/x509/GeneralNames.cs @@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.X509 return new GeneralNames(Asn1Sequence.GetInstance(obj)); } - public static GeneralNames GetInstance(Asn1TaggedObject obj, bool explicitly) - { - return GetInstance(Asn1Sequence.GetInstance(obj, explicitly)); - } + public static GeneralNames GetInstance(Asn1TaggedObject obj, bool explicitly) => + new GeneralNames(Asn1Sequence.GetInstance(obj, explicitly)); + + public static GeneralNames GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new GeneralNames(Asn1Sequence.GetTagged(taggedObject, declaredExplicit)); public static GeneralNames FromExtensions(X509Extensions extensions, DerObjectIdentifier extOid) { |