-
Notifications
You must be signed in to change notification settings - Fork 3
/
vcdb.h
36 lines (31 loc) · 1.31 KB
/
vcdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (C) 1999-2009 Inter7 Internet Technologies, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifndef VPOPMAIL_CDB_H
#define VPOPMAIL_CDB_H
#define VPASSWD_FILE "vpasswd"
#define VPASSWD_BAK_FILE "vpasswd.bak"
#define VPASSWD_LOCK_FILE ".vpasswd.lock"
#define VPASSWD_CDB_FILE "vpasswd.cdb"
#define VPASSWD_CDB_TMP_FILE "cdb.tmp"
/* buffer size when reading/writing vpasswd file */
#define MAX_BUFF_CDB 512
int make_vpasswd_cdb(char *domain);
struct vqpasswd *vgetpw(char *, char *, struct vqpasswd *, int);
int set_vpasswd_files( char *);
int vauth_adduser_line(FILE *, char *, char *, char *, char *, char *, int);
#endif