#define HI_FLAG_NETWORK_HELPER 0x00000100
#define HI_FLAG_BOT 0x00000200
#define HI_FLAG_AUTOHIDE 0x00000400
#define HI_FLAG_NETWORK_HELPER 0x00000100
#define HI_FLAG_BOT 0x00000200
#define HI_FLAG_AUTOHIDE 0x00000400
unsigned int warn_nick_owned : 1;
unsigned int warn_clone_auth : 1;
unsigned int sync_log : 1;
unsigned int warn_nick_owned : 1;
unsigned int warn_clone_auth : 1;
unsigned int sync_log : 1;
unsigned long nicks_per_handle;
unsigned long password_min_length;
unsigned long password_min_digits;
unsigned long nicks_per_handle;
unsigned long password_min_length;
unsigned long password_min_digits;
unsigned long set_fakehost_level;
unsigned long handles_per_email;
unsigned long email_search_level;
unsigned long set_fakehost_level;
unsigned long handles_per_email;
unsigned long email_search_level;
const char *network_name;
const char *titlehost_suffix;
regex_t valid_handle_regex;
const char *network_name;
const char *titlehost_suffix;
regex_t valid_handle_regex;
int oper_has_access(struct userNode *user, struct userNode *bot, unsigned int min_level, unsigned int quiet);
void nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd);
int oper_has_access(struct userNode *user, struct userNode *bot, unsigned int min_level, unsigned int quiet);
void nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd);
-struct handle_info *loc_auth(char *handle, char *password, char *userhost);
+struct handle_info *loc_auth(char *sslfp, char *handle, char *password, char *userhost);
typedef void (*user_mode_func_t)(struct userNode *user, const char *mode_change, void *extra);
void reg_user_mode_func(user_mode_func_t func, void *extra);
typedef void (*user_mode_func_t)(struct userNode *user, const char *mode_change, void *extra);
void reg_user_mode_func(user_mode_func_t func, void *extra);
/* auth_funcs are called when a user gets a new handle_info. They are
* called *after* user->handle_info has been updated. */
/* auth_funcs are called when a user gets a new handle_info. They are
* called *after* user->handle_info has been updated. */
-typedef void (*auth_func_t)(struct userNode *user, struct handle_info *old_handle);
-void reg_auth_func(auth_func_t func);
+typedef void (*auth_func_t)(struct userNode *user, struct handle_info *old_handle, void *extra);
+void reg_auth_func(auth_func_t func, void *extra);
/* Called just after a handle is renamed. */
typedef void (*handle_rename_func_t)(struct handle_info *handle, const char *old_handle, void *extra);
/* Called just after a handle is renamed. */
typedef void (*handle_rename_func_t)(struct handle_info *handle, const char *old_handle, void *extra);
/* unreg_funcs are called right before a handle is unregistered.
* `user' is the person who caused the handle to be unregistered (either a
* client authed to the handle, or an oper). */
/* unreg_funcs are called right before a handle is unregistered.
* `user' is the person who caused the handle to be unregistered (either a
* client authed to the handle, or an oper). */
-typedef void (*unreg_func_t)(struct userNode *user, struct handle_info *handle);
-void reg_unreg_func(unreg_func_t func);
+typedef void (*unreg_func_t)(struct userNode *user, struct handle_info *handle, void *extra);
+void reg_unreg_func(unreg_func_t func, void *extra);
/* Called just before a handle is merged */
typedef void (*handle_merge_func_t)(struct userNode *user, struct handle_info *handle_to, struct handle_info *handle_from, void *extra);
/* Called just before a handle is merged */
typedef void (*handle_merge_func_t)(struct userNode *user, struct handle_info *handle_to, struct handle_info *handle_from, void *extra);