* @author Bartlomiej Polot
*/
#include "platform.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_getopt_lib.h"
+#include "gnunet_util_lib.h"
#include "gnunet_mesh_service.h"
-#include "gnunet_program_lib.h"
/**
* @param cls Closure.
* @param peer Peer in the tunnel's tree.
* @param parent Parent of the current peer. All 0 when peer is root.
- *
+ *
*/
static void
tunnel_callback (void *cls,
{
return;
}
- GNUNET_MESH_get_tunnels (mh, &tunnels_callback, NULL);
+// GNUNET_MESH_get_tunnels (mh, &tunnels_callback, NULL);
if (GNUNET_YES != monitor_connections)
{
GNUNET_SCHEDULER_shutdown();
}
}
+
/**
* Call MESH's monitor API, get info of one tunnel.
*
struct GNUNET_PeerIdentity pid;
if (GNUNET_OK !=
- GNUNET_CRYPTO_hash_from_string (tunnel_id, &pid.hashPubKey))
+ GNUNET_CRYPTO_eddsa_public_key_from_string (tunnel_id,
+ strlen (tunnel_id),
+ &pid.public_key))
{
+ fprintf (stderr,
+ _("Invalid tunnel owner `%s'\n"),
+ tunnel_id);
GNUNET_SCHEDULER_shutdown();
return;
}
- GNUNET_MESH_show_tunnel (mh, &pid, 0, tunnel_callback, NULL);
+// GNUNET_MESH_show_tunnel (mh, &pid, 0, tunnel_callback, NULL);
}