Author: toad
Date: 2007-03-28 00:46:29 +0000 (Wed, 28 Mar 2007)
New Revision: 12397

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Logging

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
00:44:42 UTC (rev 12396)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
00:46:29 UTC (rev 12397)
@@ -580,6 +580,7 @@
      * May decrypt in place.
      */
     private DiffieHellmanContext processSignedDHTwoOrThree(int phase, byte[] 
payload, PeerNode pn, Peer replyTo, boolean sendCompletion) {
+       if(logMINOR) Logger.minor(this, "Handling signed stage "+phase+" auth 
packet");
        // Get context, cipher, IV
         DiffieHellmanContext ctx = (DiffieHellmanContext) 
pn.getKeyAgreementSchemeContext();
         if((ctx == null) || !ctx.canGetCipher()) {
@@ -646,6 +647,8 @@
                if(sendCompletion)
                        sendSignedDHCompletion(3, ctx.getCipher(), pn, replyTo, 
ctx);
                pn.maybeSendInitialMessages();
+        } else {
+               Logger.error(this, "Handshake not completed");
         }
         return ctx;
     }


Reply via email to