forked from I2P_Developers/i2p.i2p
findbugs all over
This commit is contained in:
@ -599,10 +599,10 @@ public final class KeyStoreUtil {
|
||||
throw new IOException("Can't create directory " + dir);
|
||||
}
|
||||
Object[] rv = SelfSignedGenerator.generate(cname, ou, null, "I2P Anonymous Network", null, null, validDays, type);
|
||||
PublicKey jpub = (PublicKey) rv[0];
|
||||
//PublicKey jpub = (PublicKey) rv[0];
|
||||
PrivateKey jpriv = (PrivateKey) rv[1];
|
||||
X509Certificate cert = (X509Certificate) rv[2];
|
||||
X509CRL crl = (X509CRL) rv[3];
|
||||
//X509CRL crl = (X509CRL) rv[3];
|
||||
List<X509Certificate> certs = Collections.singletonList(cert);
|
||||
storePrivateKey(ks, ksPW, alias, keyPW, jpriv, certs);
|
||||
return rv;
|
||||
|
@ -713,7 +713,7 @@ public final class SelfSignedGenerator {
|
||||
|
||||
private static final void test(String name, SigType type) throws Exception {
|
||||
Object[] rv = generate("cname@example.com", "ou", "o", null, "st", "c", 3652, type);
|
||||
PublicKey jpub = (PublicKey) rv[0];
|
||||
//PublicKey jpub = (PublicKey) rv[0];
|
||||
PrivateKey jpriv = (PrivateKey) rv[1];
|
||||
X509Certificate cert = (X509Certificate) rv[2];
|
||||
X509CRL crl = (X509CRL) rv[3];
|
||||
|
@ -1396,7 +1396,8 @@ public class EepGet {
|
||||
if ( /* (!_shouldProxy) && */
|
||||
// This is kindof a hack, but if we are downloading a gzip file
|
||||
// we don't want to transparently gunzip it and save it as a .gz file.
|
||||
(!path.endsWith(".gz")) && (!path.endsWith(".tgz")))
|
||||
path == null ||
|
||||
(!path.endsWith(".gz") && !path.endsWith(".tgz")))
|
||||
buf.append("gzip");
|
||||
buf.append("\r\n");
|
||||
if(!uaOverridden)
|
||||
|
Reference in New Issue
Block a user