+/**
+ * Callbacks of this type are called by #GNUNET_TESTBED_is_host_habitable to
+ * inform whether the given host is habitable or not. The Handle returned by
+ * GNUNET_TESTBED_is_host_habitable() is invalid after this callback is called
+ *
+ * @param cls NULL
+ * @param host the host whose status is being reported; will be NULL if the host
+ * given to GNUNET_TESTBED_is_host_habitable() is NULL
+ * @param status #GNUNET_YES if it is habitable; #GNUNET_NO if not
+ */
+static void
+host_habitable_cb (void *cls,
+ const struct GNUNET_TESTBED_Host *_host,
+ int status)
+{
+ hc_handle = NULL;
+ if (GNUNET_NO == status)
+ {
+ (void) printf ("%s",
+ "Unable to run the test as this system is not configured "
+ "to use password less SSH logins to localhost.\n"
+ "Skipping test\n");
+ GNUNET_SCHEDULER_cancel (abort_task);
+ abort_task = NULL;
+ GNUNET_SCHEDULER_shutdown ();
+ result = SKIP;
+ return;
+ }
+ cp = GNUNET_TESTBED_controller_start ("127.0.0.1", host, status_cb, NULL);
+}
+
+