mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
adding some licencing stuff
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
|
||||
#define VERSION "1.2.0-master"
|
||||
|
||||
#define BUILD 930
|
||||
#define BUILD 931
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
10
src/defs.h
10
src/defs.h
@ -300,6 +300,15 @@ struct import {
|
||||
};
|
||||
|
||||
|
||||
struct licence {
|
||||
char customer[TINYBUFSIZE];
|
||||
char hostname[TINYBUFSIZE];
|
||||
char ip[TINYBUFSIZE];
|
||||
time_t expiry;
|
||||
int licenced_users;
|
||||
};
|
||||
|
||||
|
||||
struct __data {
|
||||
int folder, quiet;
|
||||
char recursive_folder_names;
|
||||
@ -307,6 +316,7 @@ struct __data {
|
||||
struct node *mydomains[MAXHASH];
|
||||
struct node *imapfolders[MAXHASH];
|
||||
struct import *import;
|
||||
struct licence licence;
|
||||
char *dedup;
|
||||
int child_serial;
|
||||
|
||||
|
@ -29,4 +29,7 @@
|
||||
|
||||
#define ERR_READING_KEY "ERR: reading cipher key"
|
||||
|
||||
#define ERR_LICENCE "ERR: licence validation error"
|
||||
#define ERR_LICENCE_IP "ERR: licenced IP-address doesn't match with listen_addr parameter"
|
||||
|
||||
#endif /* _ERRMSG_H */
|
||||
|
Reference in New Issue
Block a user