Update files for 2.10.12.05 release.
[ircu2.10.12-pk.git] / include / ircd_auth.h
1 #ifndef INCLUDED_ircd_auth_h
2 #define INCLUDED_ircd_auth_h
3
4 /*
5  * IRC - Internet Relay Chat, ircd/ircd_auth.h
6  * Copyright 2004 Michael Poole <mdpoole@troilus.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307, USA.
22  */
23 /** @file
24  * @brief Interface to IAuth client implementation.
25  * @version $Id$
26  */
27
28 #ifndef INCLUDED_config_h
29 #include "config.h"
30 #endif
31
32 struct IAuth;
33 extern struct IAuth *iauth_active;
34
35 struct IAuth *iauth_connect(char *host, unsigned short port, char *passwd, time_t reconnect, time_t timeout);
36 int iauth_start_client(struct IAuth *iauth, struct Client *cptr);
37 void iauth_exit_client(struct Client *cptr);
38
39 void iauth_mark_closing(void);
40 void iauth_close_unused(void);
41
42 #endif