diff options
Diffstat (limited to 'crypto/src/tls/DefaultTlsSrpConfigVerifier.cs')
-rw-r--r-- | crypto/src/tls/DefaultTlsSrpConfigVerifier.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/src/tls/DefaultTlsSrpConfigVerifier.cs b/crypto/src/tls/DefaultTlsSrpConfigVerifier.cs index 781249829..30b107ed2 100644 --- a/crypto/src/tls/DefaultTlsSrpConfigVerifier.cs +++ b/crypto/src/tls/DefaultTlsSrpConfigVerifier.cs @@ -1,16 +1,15 @@ using System; -using System.Collections; +using System.Collections.Generic; using Org.BouncyCastle.Math; using Org.BouncyCastle.Tls.Crypto; -using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Tls { public class DefaultTlsSrpConfigVerifier : TlsSrpConfigVerifier { - private static readonly IList DefaultGroups = Platform.CreateArrayList(); + private static readonly List<Srp6Group> DefaultGroups = new List<Srp6Group>(); static DefaultTlsSrpConfigVerifier() { @@ -24,7 +23,7 @@ namespace Org.BouncyCastle.Tls } // IList is (SRP6Group) - protected readonly IList m_groups; + protected readonly IList<Srp6Group> m_groups; /// <summary>Accept only the group parameters specified in RFC 5054 Appendix A.</summary> public DefaultTlsSrpConfigVerifier() @@ -34,9 +33,9 @@ namespace Org.BouncyCastle.Tls /// <summary>Specify a custom set of acceptable group parameters.</summary> /// <param name="groups">an <see cref="IList"/> of acceptable <see cref="Srp6Group"/>.</param> - public DefaultTlsSrpConfigVerifier(IList groups) + public DefaultTlsSrpConfigVerifier(IList<Srp6Group> groups) { - this.m_groups = Platform.CreateArrayList(groups); + this.m_groups = new List<Srp6Group>(groups); } public virtual bool Accept(TlsSrpConfig srpConfig) |