]> jfr.im git - irc/quakenet/snircd.git/blame - include/s_auth.h
import of 2.10.12.07
[irc/quakenet/snircd.git] / include / s_auth.h
CommitLineData
189935b1 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.
9f8856e9 20 * @version $Id: s_auth.h,v 1.6.2.3 2006/05/08 01:55:08 entrope Exp $
189935b1 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
32struct Client;
9f8856e9 33struct AuthRequest;
34struct StatDesc;
189935b1 35
36extern void start_auth(struct Client *);
9f8856e9 37extern int auth_ping_timeout(struct Client *);
38extern int auth_set_pong(struct AuthRequest *auth, unsigned int cookie);
39extern int auth_set_user(struct AuthRequest *auth, const char *username, const char *userinfo);
40extern int auth_set_nick(struct AuthRequest *auth, const char *nickname);
41extern int auth_set_password(struct AuthRequest *auth, const char *password);
42extern int auth_cap_start(struct AuthRequest *auth);
43extern int auth_cap_done(struct AuthRequest *auth);
44extern void destroy_auth_request(struct AuthRequest *req);
45
46extern int auth_spawn(int argc, char *argv[]);
47extern void auth_send_exit(struct Client *cptr);
48extern void auth_mark_closing(void);
49extern void auth_close_unused(void);
50extern void report_iauth_conf(struct Client *cptr, const struct StatDesc *sd, char *param);
51extern void report_iauth_stats(struct Client *cptr, const struct StatDesc *sd, char *param);
189935b1 52
53#endif /* INCLUDED_s_auth_h */
54