Semi-F2F patch for Friend 2 Friend. Meaning we only initiate connections
to friends, but we accept from everyone.

--- gnunet-0.7.0/src/applications/topology_f2f/topology.c	2005-10-29 01:27:13.000000000 +0100
+++ gnunet-0.7.0/src/applications/topology_f2f/topology.c	2005-10-29 01:28:41.000000000 +0100
@@ -102,6 +102,10 @@
   return SYSERR;
 }
 
+/* we will allow everyone to connect to us, but we will only connect to friends */
+static int allowConnectionFrom(const PeerIdentity * peer) {
+  return OK; /* allow everything */
+}
 
 /**
  * Here in this scanning for applicable hosts, we also want to take
@@ -402,7 +406,7 @@
 	     NULL);
   api.estimateNetworkSize = &estimateNetworkSize;
   api.getSaturation = &estimateSaturation;
-  api.allowConnectionFrom = &allowConnection;
+  api.allowConnectionFrom = &allowConnectionFrom;
   return &api;
 }
 
