News: Verify received CRL before saving

This commit is contained in:
zzz
2016-04-28 22:17:27 +00:00
parent 52c9bf6d80
commit d885e00c64
4 changed files with 15 additions and 4 deletions

View File

@ -515,9 +515,9 @@ public final class CertUtil {
* Load a CRL. Does NOT Close the stream.
*
* @return non-null
* @since 0.9.25
* @since 0.9.25 public since 0.9.26
*/
private static X509CRL loadCRL(InputStream in) throws GeneralSecurityException {
public static X509CRL loadCRL(InputStream in) throws GeneralSecurityException {
CertificateFactory cf = CertificateFactory.getInstance("X.509");
return (X509CRL) cf.generateCRL(in);
}