fixed compiler warning
[ircu2.10.12-pk.git] / include / s_auth.h
1 /************************************************************************
2  *   IRC - Internet Relay Chat, include/s_auth.h
3  *
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)
7  *   any later version.
8  *
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.
13  *
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.
17  */
18 /** @file
19  * @brief Interface for DNS and ident lookups.
20  * @version $Id: s_auth.h 1748 2007-01-16 01:21:37Z entrope $
21  */
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
27 #endif
28 #ifndef INCLUDED_ircd_events_h
29 #include "ircd_events.h"
30 #endif
31
32 struct Client;
33 struct AuthRequest;
34 struct StatDesc;
35
36 extern void start_auth(struct Client *);
37 extern int EmptyPassString(char* password);
38 extern int auth_ping_timeout(struct Client *);
39 extern int auth_set_pong(struct AuthRequest *auth, unsigned int cookie);
40 extern int auth_set_user(struct AuthRequest *auth, const char *username, const char *hostname, const char *servername, const char *userinfo);
41 extern int auth_set_nick(struct AuthRequest *auth, const char *nickname);
42 extern int auth_set_password(struct AuthRequest *auth, char *password);
43 extern int auth_cap_start(struct AuthRequest *auth);
44 extern int auth_cap_done(struct AuthRequest *auth);
45 extern void destroy_auth_request(struct AuthRequest *req);
46 extern signed int auth_loc_query(struct AuthRequest *auth, const char *account, const char *pass, int force);
47 extern void auth_loc_reply(const char *numeric, const char *account, const char *fakehost, char *flags[], signed int argc);
48
49 extern int auth_spawn(int argc, char *argv[], int required);
50 extern void auth_send_exit(struct Client *cptr);
51 extern void auth_mark_closing(void);
52 extern void auth_close_unused(void);
53 extern void report_iauth_conf(struct Client *cptr, const struct StatDesc *sd, char *param);
54 extern void report_iauth_stats(struct Client *cptr, const struct StatDesc *sd, char *param);
55
56 #endif /* INCLUDED_s_auth_h */
57