diff options
author | David Hook <dgh@bouncycastle.org> | 2016-12-28 22:01:08 +1100 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2016-12-28 22:01:08 +1100 |
commit | 96e500fd17aac287d0682aaf58c7f1f4341e1fd6 (patch) | |
tree | 8be9b3cea34f4bce4838588a7ea5a8e38d9b282f | |
parent | BMA-147 Support ECDH_anon key exchange in (D)TLS (diff) | |
download | BouncyCastle.NET-ed25519-96e500fd17aac287d0682aaf58c7f1f4341e1fd6.tar.xz |
fixed head of loop to use primitive type.
-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) |