]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed_conf.h
kes Implement build and install of bpipe-fd.so plugin.
[bacula/bacula] / bacula / src / filed / filed_conf.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from
7    many others, a complete list can be found in the file AUTHORS.
8    This program is Free Software; you can redistribute it and/or
9    modify it under the terms of version two of the GNU General Public
10    License as published by the Free Software Foundation and included
11    in the file LICENSE.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22
23    Bacula® is a registered trademark of Kern Sibbald.
24    The licensor of Bacula is the Free Software Foundation Europe
25    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
26    Switzerland, email:ftf@fsfeurope.org.
27 */
28 /*
29  * Bacula File Daemon specific configuration
30  *
31  *     Kern Sibbald, Sep MM
32  *
33  *   Version $Id$
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_authenticate;             /* Authenticate with TSL */
63    bool tls_enable;                   /* Enable TLS */
64    bool tls_require;                  /* Require TLS */
65    bool tls_verify_peer;              /* TLS Verify Client Certificate */
66    char *tls_ca_certfile;             /* TLS CA Certificate File */
67    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
68    char *tls_certfile;                /* TLS Server Certificate File */
69    char *tls_keyfile;                 /* TLS Server Key File */
70    char *tls_dhfile;                  /* TLS Diffie-Hellman Parameters */
71    alist *tls_allowed_cns;            /* TLS Allowed Clients */
72
73    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
74 };
75
76 struct CLIENT {
77    RES   hdr;
78    dlist *FDaddrs;
79    char *working_directory;
80    char *pid_directory;
81    char *subsys_directory;
82    char *plugin_directory;            /* Plugin directory */
83    char *scripts_directory;
84    MSGS *messages;                    /* daemon message handler */
85    uint32_t MaxConcurrentJobs;
86    utime_t SDConnectTimeout;          /* timeout in seconds */
87    utime_t heartbeat_interval;        /* Interval to send heartbeats */
88    uint32_t max_network_buffer_size;  /* max network buf size */
89    bool pki_sign;                     /* Enable Data Integrity Verification via Digital Signatures */
90    bool pki_encrypt;                  /* Enable Data Encryption */
91    char *pki_keypair_file;            /* PKI Key Pair File */
92    alist *pki_signing_key_files;      /* PKI Signing Key Files */
93    alist *pki_master_key_files;       /* PKI Master Key Files */
94    bool tls_authenticate;             /* Authenticate with TLS */
95    bool tls_enable;                   /* Enable TLS */
96    bool tls_require;                  /* Require TLS */
97    char *tls_ca_certfile;             /* TLS CA Certificate File */
98    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
99    char *tls_certfile;                /* TLS Client Certificate File */
100    char *tls_keyfile;                 /* TLS Client Key File */
101
102    X509_KEYPAIR *pki_keypair;         /* Shared PKI Public/Private Keypair */
103    alist *pki_signers;                /* Shared PKI Trusted Signers */
104    alist *pki_recipients;             /* Shared PKI Recipients */
105    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
106 };
107
108
109
110 /* Define the Union of all the above
111  * resource structure definitions.
112  */
113 union URES {
114    DIRRES res_dir;
115    CLIENT res_client;
116    MSGS   res_msgs;
117    RES    hdr;
118 };