2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2017 Kern Sibbald
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.
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.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
20 * Bacula Adminstration Tool (bat)
22 * Kern Sibbald, March 2002
29 * Resource codes -- they must be sequential for indexing
37 R_LAST = R_CONSOLE_FONT /* Keep this updated */
41 * Some resource attributes
52 /* Definition of the contents of each Resource */
56 uint32_t DIRport; /* UA server port */
57 char *address; /* UA server address */
58 char *password; /* UA server password */
59 bool tls_authenticate; /* Authenticate with tls */
60 bool tls_enable; /* Enable TLS */
61 bool tls_require; /* Require TLS */
62 char *tls_ca_certfile; /* TLS CA Certificate File */
63 char *tls_ca_certdir; /* TLS CA Certificate Directory */
64 char *tls_certfile; /* TLS Client Certificate File */
65 char *tls_keyfile; /* TLS Client Key File */
66 utime_t heartbeat_interval; /* Dir heartbeat interval */
68 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
74 inline char *DIRRES::name() const { return hdr.name; }
79 char *fontface; /* Console Font specification */
85 char *password; /* UA server password */
86 bool comm_compression; /* Enable comm line compression */
87 bool tls_authenticate; /* Authenticate with tls */
88 bool tls_enable; /* Enable TLS on all connections */
89 bool tls_require; /* Require TLS on all connections */
90 char *tls_ca_certfile; /* TLS CA Certificate File */
91 char *tls_ca_certdir; /* TLS CA Certificate Directory */
92 char *tls_certfile; /* TLS Client Certificate File */
93 char *tls_keyfile; /* TLS Client Key File */
94 char *director; /* bind to director */
95 utime_t heartbeat_interval; /* Cons heartbeat interval */
97 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
103 inline char *CONRES::name() const { return hdr.name; }
106 /* Define the Union of all the above
107 * resource structure definitions.
116 typedef union u_res URES;
118 #define GetConsoleResWithName(x) ((CONRES *)GetResWithName(R_CONSOLE, (x)))
119 #define GetDirResWithName(x) ((DIRRES *)GetResWithName(R_DIRECTOR, (x)))
122 #endif /* _BAT_CONF_H_ */