summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter <peter@cryptic.(none)>2014-01-21 16:24:26 +0700
committerPeter <peter@cryptic.(none)>2014-01-21 16:24:26 +0700
commit82efab7c1a6d3c8a3d0b3f162a3909ff158699b3 (patch)
tree7addaeda987c75ced424e43577880e615d915ae7
parentBring EC performance test up-to-date with Java version (diff)
parentNeed to throw the new exceptions rather than leaving them to fall into the void (diff)
downloadBouncyCastle.NET-ed25519-82efab7c1a6d3c8a3d0b3f162a3909ff158699b3.tar.xz
Merge branch 'pkix-validator-throw' of git://github.com/jstedfast/bc-csharp into jstedfast-pkix-validator-throw
-rw-r--r--crypto/src/pkix/PkixCertPathValidatorUtilities.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
index 305b2de35..acea77856 100644
--- a/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
+++ b/crypto/src/pkix/PkixCertPathValidatorUtilities.cs
@@ -528,7 +528,7 @@ namespace Org.BouncyCastle.Pkix
 					}
 					catch (Exception e)
 					{
-						new Exception(
+						throw new Exception(
 							"Reason code CRL entry extension could not be decoded.",
 							e);
 					}
@@ -683,8 +683,8 @@ namespace Org.BouncyCastle.Pkix
 		/// the certificates</param>
 		/// <param name="certStores">a List containing only X509Store objects. These
 		/// are used to search for certificates.</param>
-		/// <returns>a Collection of all found <see cref="X509Certificate "/> or
-		/// org.bouncycastle.x509.X509AttributeCertificate objects.
+		/// <returns>a Collection of all found <see cref="X509Certificate"/> or
+		/// <see cref="Org.BouncyCastle.X509.IX509AttributeCertificate"/> objects.
 		/// May be empty but never <code>null</code>.</returns>
 		/// <exception cref="Exception"></exception>
 		internal static ICollection FindCertificates(
@@ -864,7 +864,7 @@ namespace Org.BouncyCastle.Pkix
 			}
 			catch (Exception e)
 			{
-				new Exception("Could not get issuer information from distribution point.", e);
+				throw new Exception("Could not get issuer information from distribution point.", e);
 			}
 
 			if (cert is X509Certificate)
@@ -924,7 +924,7 @@ namespace Org.BouncyCastle.Pkix
 			}
 			catch (IOException e)
 			{
-				new Exception("Cannot extract issuer from CRL.", e);
+				throw new Exception("Cannot extract issuer from CRL.", e);
 			}
 
 			BigInteger completeCRLNumber = null;