1 /************************************************************************
2 * IRC - Internet Relay Chat, include/s_auth.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 1, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * @brief Interface for DNS and ident lookups.
22 #ifndef INCLUDED_s_auth_h
23 #define INCLUDED_s_auth_h
24 #ifndef INCLUDED_sys_types_h
25 #include <sys/types.h>
26 #define INCLUDED_sys_types_h
28 #ifndef INCLUDED_ircd_events_h
29 #include "ircd_events.h"
36 extern void start_auth(struct Client *);
37 extern int auth_ping_timeout(struct Client *);
38 extern int auth_set_pong(struct AuthRequest *auth, unsigned int cookie);
39 extern int auth_set_user(struct AuthRequest *auth, const char *username, const char *hostname, const char *servername, const char *userinfo);
40 extern int auth_set_nick(struct AuthRequest *auth, const char *nickname);
41 extern int auth_set_password(struct AuthRequest *auth, const char *password);
42 extern int auth_cap_start(struct AuthRequest *auth);
43 extern int auth_cap_done(struct AuthRequest *auth);
44 extern void destroy_auth_request(struct AuthRequest *req);
46 extern int auth_spawn(int argc, char *argv[]);
47 extern void auth_send_exit(struct Client *cptr);
48 extern void auth_send_xreply(struct Client *sptr, const char *routing, const char *reply);
49 extern void auth_mark_closing(void);
50 extern void auth_close_unused(void);
51 extern void report_iauth_conf(struct Client *cptr, const struct StatDesc *sd, char *param);
52 extern void report_iauth_stats(struct Client *cptr, const struct StatDesc *sd, char *param);
54 #endif /* INCLUDED_s_auth_h */