Changeset d885e00
- Timestamp:
- Apr 28, 2016 10:17:27 PM (5 years ago)
- Branches:
- master
- Children:
- fbeca5e
- Parents:
- 52c9bf6
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/routerconsole/java/src/net/i2p/router/update/NewsFetcher.java
r52c9bf6 rd885e00 1 1 package net.i2p.router.update; 2 2 3 import java.io.ByteArrayInputStream; 3 4 import java.io.BufferedWriter; 4 5 import java.io.File; … … 11 12 import java.net.URI; 12 13 import java.net.URISyntaxException; 14 import java.security.GeneralSecurityException; 13 15 import java.text.DateFormat; 14 16 import java.util.ArrayList; … … 22 24 23 25 import net.i2p.app.ClientAppManager; 26 import net.i2p.crypto.CertUtil; 24 27 import net.i2p.crypto.SU3File; 25 28 import net.i2p.crypto.TrustedUpdate; … … 586 589 OutputStream out = null; 587 590 try { 591 byte[] data = DataHelper.getUTF8(e.data); 592 // test for validity 593 CertUtil.loadCRL(new ByteArrayInputStream(data)); 588 594 out = new SecureFileOutputStream(f); 589 out.write(DataHelper.getUTF8(e.data)); 595 out.write(data); 596 } catch (GeneralSecurityException gse) { 597 _log.error("Bad CRL", gse); 590 598 } catch (IOException ioe) { 591 599 _log.error("Failed to write CRL", ioe); -
core/java/src/net/i2p/crypto/CertUtil.java
r52c9bf6 rd885e00 516 516 * 517 517 * @return non-null 518 * @since 0.9.25 519 */ 520 p rivatestatic X509CRL loadCRL(InputStream in) throws GeneralSecurityException {518 * @since 0.9.25 public since 0.9.26 519 */ 520 public static X509CRL loadCRL(InputStream in) throws GeneralSecurityException { 521 521 CertificateFactory cf = CertificateFactory.getInstance("X.509"); 522 522 return (X509CRL) cf.generateCRL(in); -
history.txt
r52c9bf6 rd885e00 1 2016-04-28 zzz 2 * News: Parse and store CRLs in news feed 3 1 4 2016-04-28 zzz 2 5 Prop from i2p.i2p.zzz.gmp6-prop: -
router/java/src/net/i2p/router/RouterVersion.java
r52c9bf6 rd885e00 19 19 public final static String ID = "Monotone"; 20 20 public final static String VERSION = CoreVersion.VERSION; 21 public final static long BUILD = 6;21 public final static long BUILD = 7; 22 22 23 23 /** for example "-test" */
Note: See TracChangeset
for help on using the changeset viewer.