struct deferred_cert deferred;
int error;
+ PR_DEBUG;
+
validation_handler.handle_roa_v4 = handle_roa_v4;
validation_handler.handle_roa_v6 = handle_roa_v6;
validation_handler.handle_router_key = handle_router_key;
validation_handler.arg = thread_arg->arg;
+ PR_DEBUG;
+
error = validation_prepare(&state, tal, &validation_handler);
- if (error)
+ if (error) {
+ PR_DEBUG_MSG("%d", error);
return ENSURE_NEGATIVE(error);
+ }
+
+ PR_DEBUG;
if (thread_arg->sync_files) {
+ PR_DEBUG;
+
if (uri_is_rsync(uri)) {
if (!config_get_rsync_enabled()) {
+ PR_DEBUG;
validation_destroy(state);
return 0; /* Try some other TAL URI */
}
error = rsync_download_files(uri, true, false);
} else /* HTTPS */ {
if (!config_get_http_enabled()) {
+ PR_DEBUG;
validation_destroy(state);
return 0; /* Try some other TAL URI */
}
reqs_errors_log_uri(uri_get_global(uri)));
}
+ PR_DEBUG;
+
/* Reminder: there's a positive error: EREQFAILED */
if (error) {
+ PR_DEBUG_MSG("%d", error);
+
working_repo_push(uri_get_global(uri));
validation_destroy(state);
return pr_val_warn(
"TAL URI '%s' could not be downloaded.",
uri_val_get_printable(uri));
}
+
+ PR_DEBUG;
+
} else {
+ PR_DEBUG;
+
/* Look for local files */
if (!valid_file_or_dir(uri_get_local(uri), true, false,
__pr_val_err)) {
+ PR_DEBUG;
validation_destroy(state);
return 0; /* Error already logged */
}
+
+ PR_DEBUG;
}
/* At least one URI was sync'd */
{
int error;
+ PR_DEBUG;
+
error = handle_tal_uri(tal, uri, arg);
if (error)
return error;
struct tal *tal;
int error;
+ PR_DEBUG;
+
fnstack_init();
fnstack_push(thread->tal_file);
+ PR_DEBUG;
+
working_repo_init();
+ PR_DEBUG;
+
error = tal_load(thread->tal_file, &tal);
if (error)
goto end;
+ PR_DEBUG;
+
error = tal_order_uris(tal);
if (error)
goto destroy_tal;
+ PR_DEBUG;
+
error = foreach_uri(tal, __handle_tal_uri_sync, thread_arg);
if (error > 0) {
+ PR_DEBUG_MSG("error: %d", error);
error = 0;
goto destroy_tal;
- } else if (error < 0)
+ } else if (error < 0) {
+ PR_DEBUG_MSG("error: %d", error);
goto destroy_tal;
+ }
+
+ PR_DEBUG;
if (!thread->retry_local) {
error = pr_op_err("None of the URIs of the TAL '%s' yielded a successful traversal.",
if (config_get_mode() == SERVER)
pr_op_warn("First validation cycle has begun, wait until the next notification to connect your router(s)");
else
- pr_op_info("The validation has begun.");
+ pr_op_warn("The validation has begun.");
error = vrps_update(NULL);
if (error)
if (config_get_mode() == SERVER)
pr_op_warn("First validation cycle successfully ended, now you can connect your router(s)");
else
- pr_op_info("The validation has successfully ended.");
+ pr_op_warn("The validation has successfully ended.");
return 0;
}