gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2218 - GNUnet/src/applications/session


From: durner
Subject: [GNUnet-SVN] r2218 - GNUnet/src/applications/session
Date: Sun, 30 Oct 2005 03:40:10 -0800 (PST)

Author: durner
Date: 2005-10-30 03:40:06 -0800 (Sun, 30 Oct 2005)
New Revision: 2218

Modified:
   GNUnet/src/applications/session/connect.c
Log:
debug output

Modified: GNUnet/src/applications/session/connect.c
===================================================================
--- GNUnet/src/applications/session/connect.c   2005-10-28 20:17:53 UTC (rev 
2217)
+++ GNUnet/src/applications/session/connect.c   2005-10-30 11:40:06 UTC (rev 
2218)
@@ -478,16 +478,20 @@
   char * plaintext;
   EncName enc;
 
+  hash2enc(&sender->hashPubKey,
+     &enc);
   if ( (topology != NULL) &&
-       (topology->allowConnectionFrom(sender) == SYSERR) )
+       (topology->allowConnectionFrom(sender) == SYSERR) ) {
+    LOG(LOG_DEBUG, "Rejected session key from peer `%s'.\n",
+                   &enc);
+        
     return SYSERR;
+  }
   if (equalsHashCode512(&sender->hashPubKey,
                        &coreAPI->myIdentity->hashPubKey)) {
     BREAK();
     return SYSERR;
   }
-  hash2enc(&sender->hashPubKey,
-          &enc);
 #if DEBUG_SESSION
   LOG(LOG_DEBUG,
       "Received session key from peer `%s'.\n",





reply via email to

[Prev in Thread] Current Thread [Next in Thread]