- add mesh API to remove peer from blacklist
authorBart Polot <bart@net.in.tum.de>
Thu, 14 Jun 2012 15:19:35 +0000 (15:19 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 14 Jun 2012 15:19:35 +0000 (15:19 +0000)
src/include/gnunet_mesh_service.h

index 9e3ef1fac607c701f41949a79d44a8c937a6bff1..fc5985efd339d974924c46e6ff250cb224e667aa 100644 (file)
@@ -323,6 +323,20 @@ GNUNET_MESH_peer_blacklist (struct GNUNET_MESH_Tunnel *tunnel,
                             const struct GNUNET_PeerIdentity *peer);
 
 
+/**
+ * Request that the given peer isn't blacklisted anymore from this tunnel,
+ * and therefore can be added in future calls to connect_by_*.
+ * The peer must have been previously blacklisted for this tunnel.
+ *
+ * @param tunnel handle to existing tunnel.
+ * @param peer peer identity of the peer which shouldn't be blacklisted
+ *                  for the tunnel anymore.
+ */
+void
+GNUNET_MESH_peer_unblacklist (struct GNUNET_MESH_Tunnel *tunnel,
+                              const struct GNUNET_PeerIdentity *peer);
+
+
 /**
  * Handle for a transmission request.
  */