extern bool worker, worker_restart_request;
extern time_t process_start_time;
extern struct auth_penalty *auth_penalty;
+extern struct event_category event_category_auth;
+extern struct event *auth_event;
void auth_refresh_proctitle(void);
void auth_worker_refresh_proctitle(const char *state);
#include "userdb-template.h"
#include "auth.h"
+struct event *auth_event;
+struct event_category event_category_auth = {
+ .name = "auth",
+};
+
static const struct auth_userdb_settings userdb_dummy_set = {
.name = "",
.driver = "static",
const char *not_service = NULL;
bool check_default = TRUE;
+ auth_event = event_create(NULL);
+ if (set->debug)
+ event_set_forced_debug(auth_event, TRUE);
+ event_add_category(auth_event, &event_category_auth);
i_array_init(&auths, 8);
auth = auth_preinit(set, NULL, pool, reg);
array_foreach(&auths, auth)
auth_deinit(*auth);
+ event_unref(&auth_event);
}
void auths_free(void)