]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed_conf.h
Update copyright
[bacula/bacula] / bacula / src / filed / filed_conf.h
1 /*
2  * Bacula File Daemon specific configuration
3  *
4  *     Kern Sibbald, Sep MM
5  *
6  *   Version $Id$
7  */
8 /*
9    Bacula® - The Network Backup Solution
10
11    Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
12
13    The main author of Bacula is Kern Sibbald, with contributions from
14    many others, a complete list can be found in the file AUTHORS.
15    This program is Free Software; you can redistribute it and/or
16    modify it under the terms of version two of the GNU General Public
17    License as published by the Free Software Foundation plus additions
18    that are listed in the file LICENSE.
19
20    This program is distributed in the hope that it will be useful, but
21    WITHOUT ANY WARRANTY; without even the implied warranty of
22    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23    General Public License for more details.
24
25    You should have received a copy of the GNU General Public License
26    along with this program; if not, write to the Free Software
27    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28    02110-1301, USA.
29
30    Bacula® is a registered trademark of John Walker.
31    The licensor of Bacula is the Free Software Foundation Europe
32    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
33    Switzerland, email:ftf@fsfeurope.org.
34 */
35
36 /*
37  * Resource codes -- they must be sequential for indexing
38  */
39 #define R_FIRST                       1001
40
41 #define R_DIRECTOR                    1001
42 #define R_CLIENT                      1002
43 #define R_MSGS                        1003
44
45 #define R_LAST                        R_MSGS
46
47 /*
48  * Some resource attributes
49  */
50 #define R_NAME                        1020
51 #define R_ADDRESS                     1021
52 #define R_PASSWORD                    1022
53 #define R_TYPE                        1023
54
55
56 /* Definition of the contents of each Resource */
57 struct DIRRES {
58    RES   hdr;
59    char *password;                    /* Director password */
60    char *address;                     /* Director address or zero */
61    bool monitor;                      /* Have only access to status and .status functions */
62    bool tls_enable;                   /* Enable TLS */
63    bool tls_require;                  /* Require TLS */
64    bool tls_verify_peer;              /* TLS Verify Client Certificate */
65    char *tls_ca_certfile;             /* TLS CA Certificate File */
66    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
67    char *tls_certfile;                /* TLS Server Certificate File */
68    char *tls_keyfile;                 /* TLS Server Key File */
69    char *tls_dhfile;                  /* TLS Diffie-Hellman Parameters */
70    alist *tls_allowed_cns;            /* TLS Allowed Clients */
71
72    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
73 };
74
75 struct CLIENT {
76    RES   hdr;
77    dlist *FDaddrs;
78    char *working_directory;
79    char *pid_directory;
80    char *subsys_directory;
81    char *scripts_directory;
82    MSGS *messages;                    /* daemon message handler */
83    int MaxConcurrentJobs;
84    utime_t heartbeat_interval;        /* Interval to send heartbeats to Dir */
85    utime_t SDConnectTimeout;          /* timeout in seconds */
86    uint32_t max_network_buffer_size;  /* max network buf size */
87    bool pki_sign;                     /* Enable Data Integrity Verification via Digital Signatures */
88    bool pki_encrypt;                  /* Enable Data Encryption */
89    char *pki_keypair_file;            /* PKI Key Pair File */
90    alist *pki_signing_key_files;      /* PKI Signing Key Files */
91    alist *pki_master_key_files;       /* PKI Master Key Files */
92    bool tls_enable;                   /* Enable TLS */
93    bool tls_require;                  /* Require TLS */
94    char *tls_ca_certfile;             /* TLS CA Certificate File */
95    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
96    char *tls_certfile;                /* TLS Client Certificate File */
97    char *tls_keyfile;                 /* TLS Client Key File */
98
99    X509_KEYPAIR *pki_keypair;         /* Shared PKI Public/Private Keypair */
100    alist *pki_signers;                /* Shared PKI Trusted Signers */
101    alist *pki_recipients;             /* Shared PKI Recipients */
102    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
103 };
104
105
106
107 /* Define the Union of all the above
108  * resource structure definitions.
109  */
110 union URES {
111    DIRRES res_dir;
112    CLIENT res_client;
113    MSGS   res_msgs;
114    RES    hdr;
115 };