adding some licencing stuff

This commit is contained in:
SJ
2015-12-09 21:19:14 +01:00
parent 526295dae4
commit c31b13d77b
5 changed files with 18 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#define VERSION "1.2.0-master"
#define BUILD 930
#define BUILD 931
#define HOSTID "mailarchiver"

View File

@ -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;

View File

@ -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 */