diff options
author | Marcin Paszylk <marcin.paszylk@fancyfon.com> | 2015-06-16 12:24:03 +0200 |
---|---|---|
committer | Marcin Paszylk <marcin.paszylk@fancyfon.com> | 2015-06-16 12:24:03 +0200 |
commit | 277600e01f7d9f1b5633cb8f7db897e75f04f0f1 (patch) | |
tree | 15c54f1ce1e7745778ed5407bbe81fcf31a42bd5 | |
parent | Add range checks to F2m field elements (diff) | |
download | BouncyCastle.NET-ed25519-277600e01f7d9f1b5633cb8f7db897e75f04f0f1.tar.xz |
Changed PkixCertPathChecker Check method signature, so chosen unsupported certificate extensions can be removed from collection in Check method implementation.
Change-Id: I2041e4dc7be1b041bbe3a4ff0537be921b1f317b
-rw-r--r-- | crypto/src/pkix/PkixCertPathChecker.cs | 4 | ||||
-rw-r--r-- | crypto/test/src/test/CertPathValidatorTest.cs | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/pkix/PkixCertPathChecker.cs b/crypto/src/pkix/PkixCertPathChecker.cs index f22738d89..da7e82b46 100644 --- a/crypto/src/pkix/PkixCertPathChecker.cs +++ b/crypto/src/pkix/PkixCertPathChecker.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections; using Org.BouncyCastle.Utilities.Collections; using Org.BouncyCastle.X509; @@ -82,7 +80,7 @@ namespace Org.BouncyCastle.Pkix * @exception CertPathValidatorException * if the specified certificate does not pass the check */ - public abstract void Check(X509Certificate cert, ICollection unresolvedCritExts); + public abstract void Check(X509Certificate cert, ISet unresolvedCritExts); //throws CertPathValidatorException; /** diff --git a/crypto/test/src/test/CertPathValidatorTest.cs b/crypto/test/src/test/CertPathValidatorTest.cs index a92bb9b31..f83ac850a 100644 --- a/crypto/test/src/test/CertPathValidatorTest.cs +++ b/crypto/test/src/test/CertPathValidatorTest.cs @@ -290,7 +290,7 @@ namespace Org.BouncyCastle.Tests return null; } - public override void Check(X509Certificate cert, ICollection unresolvedCritExts) + public override void Check(X509Certificate cert, ISet unresolvedCritExts) { count++; } |