2 * Bacula File Daemon specific configuration
9 Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of
14 the License, or (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public
22 License along with this program; if not, write to the Free
23 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
29 * Resource codes -- they must be sequential for indexing
33 #define R_DIRECTOR 1001
40 * Some resource attributes
43 #define R_ADDRESS 1021
44 #define R_PASSWORD 1022
48 /* Definition of the contents of each Resource */
51 char *password; /* Director password */
52 char *address; /* Director address or zero */
53 int monitor; /* Have only access to status and .status functions */
55 int tls_enable; /* Enable TLS */
56 int tls_require; /* Require TLS */
57 int tls_verify_peer; /* TLS Verify Client Certificate */
58 char *tls_ca_certfile; /* TLS CA Certificate File */
59 char *tls_ca_certdir; /* TLS CA Certificate Directory */
60 char *tls_certfile; /* TLS Server Certificate File */
61 char *tls_keyfile; /* TLS Server Key File */
62 char *tls_dhfile; /* TLS Diffie-Hellman Parameters */
63 alist *tls_allowed_cns; /* TLS Allowed Clients */
65 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
72 char *working_directory;
74 char *subsys_directory;
75 char *scripts_directory;
76 MSGS *messages; /* daemon message handler */
77 int MaxConcurrentJobs;
78 utime_t heartbeat_interval; /* Interval to send heartbeats to Dir */
79 utime_t SDConnectTimeout; /* timeout in seconds */
80 uint32_t max_network_buffer_size; /* max network buf size */
82 int tls_enable; /* Enable TLS */
83 int tls_require; /* Require TLS */
84 char *tls_ca_certfile; /* TLS CA Certificate File */
85 char *tls_ca_certdir; /* TLS CA Certificate Directory */
86 char *tls_certfile; /* TLS Client Certificate File */
87 char *tls_keyfile; /* TLS Client Key File */
89 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
95 /* Define the Union of all the above
96 * resource structure definitions.