Commit f1b18462 by Andreas Tobler

2004-09-21 Casey Marshall <csm@gnu.org>

	* java/security/cert/X509CRLSelector.java:
	(match): remove unreachable try-catch clauses.
	Reported by: Dalibor Topic <robilad@kaffe.org>

From-SVN: r87805
parent 9413382e
2004-09-21 Casey Marshall <csm@gnu.org>
* java/security/cert/X509CRLSelector.java:
(match): remove unreachable try-catch clauses.
Reported by: Dalibor Topic <robilad@kaffe.org>
2004-09-21 Mark Wielaard <mark@klomp.org>
* java/util/TreeMap.java (root): Don't initialize.
(TreeMap(Comparator)): Call fabricateTree(0).
(fabricateTree): Initialize root and size when count is 0.
2004-09-21 Sven de Marothy <sven@physto.se>
* java/nio/ByteBuffer.java (hashCode): Implemented.
......
......@@ -378,8 +378,27 @@ public class X509CRLSelector implements CRLSelector, Cloneable
BigInteger crlNumber = null;
if (maxCrlNumber != null)
{
byte[] b = crl.getExtensionValue(CRL_NUMBER_ID);
if (b == null)
return false;
try
{
DERValue val = DERReader.read(b);
if (!(val.getValue() instanceof BigInteger))
return false;
crlNumber = (BigInteger) val.getValue();
}
catch (IOException ioe)
{
return false;
}
if (maxCrlNumber.compareTo(crlNumber) < 0)
return false;
}
if (minCrlNumber != null)
{
if (crlNumber == null)
{
byte[] b = crl.getExtensionValue(CRL_NUMBER_ID);
if (b == null)
return false;
......@@ -394,42 +413,9 @@ public class X509CRLSelector implements CRLSelector, Cloneable
{
return false;
}
if (maxCrlNumber.compareTo(crlNumber) < 0)
return false;
}
catch (CertificateParsingException cpe)
{
return false;
}
}
if (minCrlNumber != null)
{
try
{
if (crlNumber == null)
{
byte[] b = crl.getExtensionValue(CRL_NUMBER_ID);
if (b == null)
return false;
try
{
DERValue val = DERReader.read(b);
if (!(val.getValue() instanceof BigInteger))
return false;
crlNumber = (BigInteger) val.getValue();
}
catch (IOException ioe)
{
return false;
}
}
if (minCrlNumber.compareTo(crlNumber) > 0)
return false;
}
catch (CertificateParsingException cpe)
{
return false;
}
if (minCrlNumber.compareTo(crlNumber) > 0)
return false;
}
if (date != null)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment