-
-static void
-validation_notification (void *cls,
- const char *name,
- const struct GNUNET_PeerIdentity *peer,
- uint32_t challenge,
- const char *sender_addr)
-{
- /* Sailor: 'test_validation' should get here
- if the validation worked; so we cancel the
- "delayed" task that will cause failure */
- if (validation_timeout_task != GNUNET_SCHEDULER_NO_TASK)
- {
- GNUNET_SCHEDULER_cancel (sched, validation_timeout_task);
- validation_timeout_task = GNUNET_SCHEDULER_NO_TASK;
- }
-
- GNUNET_assert (challenge == 42);
-
- /* Sailor: if this is the last test, calling this function
- here will end the process. */
- ok = 0; /* if the last test succeeded, report success */
- unload_plugins (NULL, cfg);