forked from I2P_Developers/i2p.i2p
I2CP Multisession - Work in progress:
Reuse LS encryption keypair from primary LS Log tweaks
This commit is contained in:
@@ -161,6 +161,9 @@ public class I2PSocketManagerFull implements I2PSocketManager {
|
||||
*/
|
||||
public I2PSession addSubsession(InputStream privateKeyStream, Properties opts) throws I2PSessionException {
|
||||
if (privateKeyStream == null) {
|
||||
// We don't actually need the same pubkey in the dest, just in the LS.
|
||||
// The dest one is unused. But this is how we find the LS keys
|
||||
// to reuse in RequestLeaseSetMessageHandler.
|
||||
ByteArrayOutputStream keyStream = new ByteArrayOutputStream(1024);
|
||||
try {
|
||||
SigType type = getSigType(opts);
|
||||
|
@@ -806,7 +806,7 @@ class Packet {
|
||||
if (isFlagSet(FLAG_MAX_PACKET_SIZE_INCLUDED)) buf.append(" MS ").append(_optionMaxSize);
|
||||
if (isFlagSet(FLAG_PROFILE_INTERACTIVE)) buf.append(" INTERACTIVE");
|
||||
if (isFlagSet(FLAG_RESET)) buf.append(" RESET");
|
||||
if (isFlagSet(FLAG_SIGNATURE_INCLUDED)) buf.append(" SIG");
|
||||
if (isFlagSet(FLAG_SIGNATURE_INCLUDED)) buf.append(" SIG ").append(_optionSignature.length());
|
||||
if (isFlagSet(FLAG_SIGNATURE_REQUESTED)) buf.append(" SIGREQ");
|
||||
if (isFlagSet(FLAG_SYNCHRONIZE)) buf.append(" SYN");
|
||||
}
|
||||
|
Reference in New Issue
Block a user