2 * Bacula File Daemon specific configuration
9 Copyright (C) 2000-2006 Kern Sibbald
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 version 2 as amended with additional clauses defined in the
14 file LICENSE in the main source directory.
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
19 the file LICENSE for additional details.
24 * Resource codes -- they must be sequential for indexing
28 #define R_DIRECTOR 1001
35 * Some resource attributes
38 #define R_ADDRESS 1021
39 #define R_PASSWORD 1022
43 /* Definition of the contents of each Resource */
46 char *password; /* Director password */
47 char *address; /* Director address or zero */
48 bool monitor; /* Have only access to status and .status functions */
49 bool tls_enable; /* Enable TLS */
50 bool tls_require; /* Require TLS */
51 bool tls_verify_peer; /* TLS Verify Client Certificate */
52 char *tls_ca_certfile; /* TLS CA Certificate File */
53 char *tls_ca_certdir; /* TLS CA Certificate Directory */
54 char *tls_certfile; /* TLS Server Certificate File */
55 char *tls_keyfile; /* TLS Server Key File */
56 char *tls_dhfile; /* TLS Diffie-Hellman Parameters */
57 alist *tls_allowed_cns; /* TLS Allowed Clients */
59 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
65 char *working_directory;
67 char *subsys_directory;
68 char *scripts_directory;
69 MSGS *messages; /* daemon message handler */
70 int MaxConcurrentJobs;
71 utime_t heartbeat_interval; /* Interval to send heartbeats to Dir */
72 utime_t SDConnectTimeout; /* timeout in seconds */
73 uint32_t max_network_buffer_size; /* max network buf size */
74 bool pki_sign; /* Enable Data Integrity Verification via Digital Signatures */
75 bool pki_encrypt; /* Enable Data Encryption */
76 char *pki_keypair_file; /* PKI Key Pair File */
77 alist *pki_signing_key_files; /* PKI Signing Key Files */
78 alist *pki_master_key_files; /* PKI Master Key Files */
79 bool tls_enable; /* Enable TLS */
80 bool tls_require; /* Require TLS */
81 char *tls_ca_certfile; /* TLS CA Certificate File */
82 char *tls_ca_certdir; /* TLS CA Certificate Directory */
83 char *tls_certfile; /* TLS Client Certificate File */
84 char *tls_keyfile; /* TLS Client Key File */
86 X509_KEYPAIR *pki_keypair; /* Shared PKI Public/Private Keypair */
87 alist *pki_signers; /* Shared PKI Trusted Signers */
88 alist *pki_recipients; /* Shared PKI Recipients */
89 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
94 /* Define the Union of all the above
95 * resource structure definitions.