I2CP Multisession - Work in progress:

Fix NPE in addSubsession() by creating key stream
Set sigtype for subsession
This commit is contained in:
zzz
2015-04-18 19:50:14 +00:00
parent 91e98ba447
commit ff5d29de1a
2 changed files with 52 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ import javax.net.ssl.SSLServerSocketFactory;
import net.i2p.I2PAppContext;
import net.i2p.I2PException;
import net.i2p.client.I2PClient;
import net.i2p.client.I2PSession;
import net.i2p.client.I2PSessionException;
import net.i2p.client.streaming.I2PSocket;
@@ -332,7 +333,7 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
name = props.getProperty("outbound.nickname");
if (name != null)
props.setProperty("outbound.nickname", name + " (DSA)");
// TODO set sig type in props?
props.setProperty(I2PClient.PROP_SIGTYPE, "DSA_SHA1");
try {
return socketManager.addSubsession(null, props);
} catch (I2PSessionException ise) {