diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/x509/extension/X509ExtensionUtil.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/src/x509/extension/X509ExtensionUtil.cs b/crypto/src/x509/extension/X509ExtensionUtil.cs index 845a87bad..5f65ebfda 100644 --- a/crypto/src/x509/extension/X509ExtensionUtil.cs +++ b/crypto/src/x509/extension/X509ExtensionUtil.cs @@ -44,9 +44,11 @@ namespace Org.BouncyCastle.X509.Extension { Asn1Sequence seq = DerSequence.GetInstance(FromExtensionValue(extVal)); - foreach (GeneralName genName in seq) + foreach (Asn1Encodable primName in seq) { IList list = Platform.CreateArrayList(); + GeneralName genName = GeneralName.GetInstance(primName); + list.Add(genName.TagNo); switch (genName.TagNo) |