diff --git a/router/java/src/net/i2p/data/i2np/DeliveryInstructions.java b/router/java/src/net/i2p/data/i2np/DeliveryInstructions.java index b2fa416ab8..b9c57da6cb 100644 --- a/router/java/src/net/i2p/data/i2np/DeliveryInstructions.java +++ b/router/java/src/net/i2p/data/i2np/DeliveryInstructions.java @@ -67,13 +67,13 @@ public class DeliveryInstructions extends DataStructureImpl { public boolean getEncrypted() { return _encrypted; } /** - * For cloves only (not tunnels), default false, unused + * For cloves only (not tunnels), default null, unused * @deprecated unused */ public void setEncrypted(boolean encrypted) { _encrypted = encrypted; } /** - * For cloves only (not tunnels), default false, unused + * For cloves only (not tunnels), default null, unused * @deprecated unused */ public SessionKey getEncryptionKey() { return _encryptionKey; } diff --git a/router/java/test/junit/net/i2p/data/i2np/DeliveryInstructionsTest.java b/router/java/test/junit/net/i2p/data/i2np/DeliveryInstructionsTest.java index 3d38706493..a979ce061f 100644 --- a/router/java/test/junit/net/i2p/data/i2np/DeliveryInstructionsTest.java +++ b/router/java/test/junit/net/i2p/data/i2np/DeliveryInstructionsTest.java @@ -26,13 +26,14 @@ public class DeliveryInstructionsTest extends StructureTest { instructions.setDelayRequested(true); instructions.setDelaySeconds(42); instructions.setDeliveryMode(DeliveryInstructions.DELIVERY_MODE_TUNNEL); - instructions.setEncrypted(true); - SessionKey key = new SessionKey(); - byte keyData[] = new byte[SessionKey.KEYSIZE_BYTES]; - for (int i = 0; i < keyData.length; i++) - keyData[i] = (byte)i; - key.setData(keyData); - instructions.setEncryptionKey(key); + // encryption key read/write disabled + //instructions.setEncrypted(true); + //SessionKey key = new SessionKey(); + //byte keyData[] = new byte[SessionKey.KEYSIZE_BYTES]; + //for (int i = 0; i < keyData.length; i++) + // keyData[i] = (byte)i; + //key.setData(keyData); + //instructions.setEncryptionKey(key); Hash hash = new Hash(); byte hashData[] = new byte[32]; for (int i = 0; i < hashData.length; i++)