Author: durner
Date: 2005-10-04 10:24:59 -0700 (Tue, 04 Oct 2005)
New Revision: 2160

Modified:
   GNUnet/src/server/connection.c
Log:
debug info

Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c      2005-10-03 20:50:15 UTC (rev 2159)
+++ GNUnet/src/server/connection.c      2005-10-04 17:24:59 UTC (rev 2160)
@@ -2283,6 +2283,24 @@
     LOG(LOG_INFO,
        "Decrypting message from host `%s' failed, wrong sessionkey!\n",
        &enc);
+#if DEBUG_CONNECTION
+    {
+      char skey[65];
+      char *dst;
+      int idx;
+      
+      dst = skey;
+      for (idx=0; idx < SESSIONKEY_LEN; idx++) {
+        sprintf(dst, "%02x", be->skey_remote[idx]);
+        dst += 2;
+      }
+      *dst = 0;
+      
+      LOG(LOG_DEBUG,
+          "Wrong sessionkey: `%s'\n",
+          &enc);
+    }
+#endif
     addHost(sender, YES);
     MUTEX_UNLOCK(&lock);
     FREE(tmp);



_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to