* @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,
}
}
+
/**
* 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_ecc_public_sign_key_from_string (tunnel_id,
+ strlen (tunnel_id),
+ &pid.public_key))
{
+ fprintf (stderr,
+ _("Invalid tunnel owner `%s'\n"),
+ tunnel_id);
GNUNET_SCHEDULER_shutdown();
return;
}