ircu2.10.12 pk910 fork
[ircu2.10.12-pk.git] / include / umkpasswd.h
1 /*
2  * IRC - Internet Relay Chat, include/umkpasswd.h
3  * Copyright (C) 2002 hikari
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 1, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  *
19  * $Id: umkpasswd.h 1077 2004-06-15 01:20:36Z entrope $
20  */
21 #ifndef INCLUDED_umkpasswd_h
22 #define INCLUDED_umkpasswd_h 
23
24 struct umkpasswd_conf_s {
25  int debuglevel;        /* you really need me to comment this? */
26  char* mech;            /* mechanism we want to use */
27  char* conf;            /* conf file, otherwise DPATH/CPATH */
28  int flags;             /* to add or not to add (or maybe to update) */
29  char* user;            /* username */
30  int operclass;         /* connection class to use */
31 };
32
33 typedef struct umkpasswd_conf_s umkpasswd_conf_t;
34
35 /* values for flags */
36 #define ACT_ADDOPER    0x1
37 #define ACT_UPDOPER    0x2
38 #define ACT_ADDSERV    0x4 /* not implemented yet */
39 #define ACT_UPDSRRV    0x8 /* not implemented yet */
40
41 const char* default_salts = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
42
43 #endif /* INCLUDED_umkpasswd_h */
44