Author: toad
Date: 2007-03-28 00:44:42 +0000 (Wed, 28 Mar 2007)
New Revision: 12396

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Fix connectivity to old nodes

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
00:27:21 UTC (rev 12395)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
00:44:42 UTC (rev 12396)
@@ -168,7 +168,7 @@
      */
     private boolean tryProcessAuth(byte[] buf, int offset, int length, 
PeerNode opn, Peer peer) {
         BlockCipher authKey = opn.incomingSetupCipher;
-        if(logMINOR) Logger.minor(this, "Decrypt key: 
"+HexUtil.bytesToHex(opn.incomingSetupKey)+" for "+peer+" : "+opn);
+        if(logMINOR) Logger.minor(this, "Decrypt key: 
"+HexUtil.bytesToHex(opn.incomingSetupKey)+" for "+peer+" : "+opn+" in 
tryProcessAuth");
         // Does the packet match IV E( H(data) data ) ?
         PCFBMode pcfb = PCFBMode.create(authKey);
         int ivLength = pcfb.lengthIV();
@@ -289,7 +289,7 @@
                                processDHZeroOrOne(0, payload, pn);
                        if(ctx == null) return;
                        // Send reply
-                       sendFirstHalfDHPacket(negType, 1, 
ctx.getOurExponential(), pn, replyTo);
+                       sendFirstHalfDHPacket(1, negType, 
ctx.getOurExponential(), pn, replyTo);
                        // Send a type 1, they will reply with a type 2
                } else if(packetType == 1) {
                        // We are Alice


Reply via email to