2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2015 Kern Sibbald
5 Copyright (C) 2002-2014 Free Software Foundation Europe e.V.
7 The original author of Bacula is Kern Sibbald, with contributions
8 from many others, a complete list can be found in the file AUTHORS.
10 You may use this file and others of this release according to the
11 license defined in the LICENSE file, which includes the Affero General
12 Public License, v3.0 ("AGPLv3") and some additional permissions and
13 terms pursuant to its AGPLv3 Section 7.
15 This notice must be preserved when any source code is
16 conveyed and/or propagated.
18 Bacula(R) is a registered trademark of Kern Sibbald.
21 * Bacula Adminstration Tool (bat)
23 * Kern Sibbald, March 2002
30 * Resource codes -- they must be sequential for indexing
38 R_LAST = R_CONSOLE_FONT /* Keep this updated */
42 * Some resource attributes
53 /* Definition of the contents of each Resource */
57 uint32_t DIRport; /* UA server port */
58 char *address; /* UA server address */
59 char *password; /* UA server password */
60 bool tls_authenticate; /* Authenticate with tls */
61 bool tls_enable; /* Enable TLS */
62 bool tls_require; /* Require TLS */
63 char *tls_ca_certfile; /* TLS CA Certificate File */
64 char *tls_ca_certdir; /* TLS CA Certificate Directory */
65 char *tls_certfile; /* TLS Client Certificate File */
66 char *tls_keyfile; /* TLS Client Key File */
67 utime_t heartbeat_interval; /* Dir heartbeat interval */
69 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
75 inline char *DIRRES::name() const { return hdr.name; }
80 char *fontface; /* Console Font specification */
86 char *password; /* UA server password */
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_ */