summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-27 00:09:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-27 00:09:15 +0700
commit338bc87f999d1ff87438c01ba22d3e9a95bb8a6f (patch)
tree02cdc37cedeef48be9f080c12bdac66e209585ae
parentCheck trust anchor count after filtering for nulls (diff)
downloadBouncyCastle.NET-ed25519-338bc87f999d1ff87438c01ba22d3e9a95bb8a6f.tar.xz
Change more internal usages of ISet to HashSet
-rw-r--r--crypto/src/pkix/PkixAttrCertPathBuilder.cs2
-rw-r--r--crypto/src/pkix/PkixParameters.cs8
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/pkix/PkixAttrCertPathBuilder.cs b/crypto/src/pkix/PkixAttrCertPathBuilder.cs
index c583bff00..2d671a585 100644
--- a/crypto/src/pkix/PkixAttrCertPathBuilder.cs
+++ b/crypto/src/pkix/PkixAttrCertPathBuilder.cs
@@ -161,7 +161,7 @@ namespace Org.BouncyCastle.Pkix
 					}
 
 					// try to get the issuer certificate from one of the stores
-					ISet<X509Certificate> issuers;
+					HashSet<X509Certificate> issuers;
 					try
 					{
 						issuers = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams);
diff --git a/crypto/src/pkix/PkixParameters.cs b/crypto/src/pkix/PkixParameters.cs
index 67a75ba97..ede736747 100644
--- a/crypto/src/pkix/PkixParameters.cs
+++ b/crypto/src/pkix/PkixParameters.cs
@@ -55,10 +55,10 @@ namespace Org.BouncyCastle.Pkix
 		private ISelector<X509Certificate> m_targetConstraintsCert;
 
 		private bool additionalLocationsEnabled;
-		private ISet<TrustAnchor> trustedACIssuers;
-		private ISet<string> necessaryACAttributes;
-		private ISet<string> prohibitedACAttributes;
-		private ISet<PkixAttrCertChecker> attrCertCheckers;
+		private HashSet<TrustAnchor> trustedACIssuers;
+		private HashSet<string> necessaryACAttributes;
+		private HashSet<string> prohibitedACAttributes;
+		private HashSet<PkixAttrCertChecker> attrCertCheckers;
 		private int validityModel = PkixValidityModel;
 		private bool useDeltas = false;