]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed_conf.h
baculum: Update AUTHORS file
[bacula/bacula] / bacula / src / filed / filed_conf.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2015 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  * Bacula File Daemon specific configuration
21  *
22  *     Kern Sibbald, Sep MM
23  */
24
25 /*
26  * Resource codes -- they must be sequential for indexing
27  */
28 #define R_FIRST                       1001
29
30 #define R_DIRECTOR                    1001
31 #define R_CLIENT                      1002
32 #define R_MSGS                        1003
33
34 #define R_LAST                        R_MSGS
35
36 /*
37  * Some resource attributes
38  */
39 #define R_NAME                        1020
40 #define R_ADDRESS                     1021
41 #define R_PASSWORD                    1022
42 #define R_TYPE                        1023
43
44
45 /* Definition of the contents of each Resource */
46 struct DIRRES {
47    RES   hdr;
48    char *password;                    /* Director password */
49    char *address;                     /* Director address or zero */
50    bool monitor;                      /* Have only access to status and .status functions */
51    bool tls_authenticate;             /* Authenticate with TSL */
52    bool tls_enable;                   /* Enable TLS */
53    bool tls_require;                  /* Require TLS */
54    bool tls_verify_peer;              /* TLS Verify Client Certificate */
55    char *tls_ca_certfile;             /* TLS CA Certificate File */
56    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
57    char *tls_certfile;                /* TLS Server Certificate File */
58    char *tls_keyfile;                 /* TLS Server Key File */
59    char *tls_dhfile;                  /* TLS Diffie-Hellman Parameters */
60    alist *tls_allowed_cns;            /* TLS Allowed Clients */
61    uint64_t max_bandwidth_per_job;    /* Bandwidth limitation (per director) */
62    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
63    alist *disable_cmds;               /* Commands to disable */
64    bool *disabled_cmds_array;         /* Disabled commands array */
65 };
66
67 struct CLIENT {
68    RES   hdr;
69    dlist *FDaddrs;
70    dlist *FDsrc_addr;                 /* address to source connections from */
71    char *working_directory;
72    char *pid_directory;
73    char *subsys_directory;
74    char *plugin_directory;            /* Plugin directory */
75    char *scripts_directory;
76    char *snapshot_command;
77    MSGS *messages;                    /* daemon message handler */
78    uint32_t MaxConcurrentJobs;
79    utime_t SDConnectTimeout;          /* timeout in seconds */
80    utime_t heartbeat_interval;        /* Interval to send heartbeats */
81    uint32_t max_network_buffer_size;  /* max network buf size */
82    bool pki_sign;                     /* Enable Data Integrity Verification via Digital Signatures */
83    bool pki_encrypt;                  /* Enable Data Encryption */
84    char *pki_keypair_file;            /* PKI Key Pair File */
85    alist *pki_signing_key_files;      /* PKI Signing Key Files */
86    alist *pki_master_key_files;       /* PKI Master Key Files */
87    uint32_t pki_cipher;               /* PKI Cipher type */
88    uint32_t pki_digest;               /* PKI Digest type */
89    bool tls_authenticate;             /* Authenticate with TLS */
90    bool tls_enable;                   /* Enable TLS */
91    bool tls_require;                  /* Require TLS */
92    char *tls_ca_certfile;             /* TLS CA Certificate File */
93    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
94    char *tls_certfile;                /* TLS Client Certificate File */
95    char *tls_keyfile;                 /* TLS Client Key File */
96
97    X509_KEYPAIR *pki_keypair;         /* Shared PKI Public/Private Keypair */
98    alist *pki_signers;                /* Shared PKI Trusted Signers */
99    alist *pki_recipients;             /* Shared PKI Recipients */
100    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
101    char *verid;                       /* Custom Id to print in version command */
102    uint64_t max_bandwidth_per_job;    /* Bandwidth limitation (global) */
103    alist *disable_cmds;               /* Commands to disable */
104    bool *disabled_cmds_array;         /* Disabled commands array */
105 };
106
107
108
109 /* Define the Union of all the above
110  * resource structure definitions.
111  */
112 union URES {
113    DIRRES res_dir;
114    CLIENT res_client;
115    MSGS   res_msgs;
116    RES    hdr;
117 };