mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 21:53:43 +00:00
News: Verify received CRL before saving
This commit is contained in:
1 parent
52c9bf6d80
commit
d885e00c64
4 files changed
+15
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user