2 Bacula® - The Network Backup Solution
4 Copyright (C) 2002-2014 Free Software Foundation Europe e.V.
6 The main author of Bacula is Kern Sibbald, with contributions from many
7 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 Bacula® is a registered trademark of Kern Sibbald.
17 * Bacula Adminstration Tool (bat)
19 * Kern Sibbald, March 2002
28 * Resource codes -- they must be sequential for indexing
36 R_LAST = R_CONSOLE_FONT /* Keep this updated */
40 * Some resource attributes
51 /* Definition of the contents of each Resource */
55 uint32_t DIRport; /* UA server port */
56 char *address; /* UA server address */
57 char *password; /* UA server password */
58 bool tls_authenticate; /* Authenticate with tls */
59 bool tls_enable; /* Enable TLS */
60 bool tls_require; /* Require TLS */
61 char *tls_ca_certfile; /* TLS CA Certificate File */
62 char *tls_ca_certdir; /* TLS CA Certificate Directory */
63 char *tls_certfile; /* TLS Client Certificate File */
64 char *tls_keyfile; /* TLS Client Key File */
65 utime_t heartbeat_interval; /* Dir heartbeat interval */
67 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
73 inline char *DIRRES::name() const { return hdr.name; }
78 char *fontface; /* Console Font specification */
84 char *password; /* UA server password */
85 bool tls_authenticate; /* Authenticate with tls */
86 bool tls_enable; /* Enable TLS on all connections */
87 bool tls_require; /* Require TLS on all connections */
88 char *tls_ca_certfile; /* TLS CA Certificate File */
89 char *tls_ca_certdir; /* TLS CA Certificate Directory */
90 char *tls_certfile; /* TLS Client Certificate File */
91 char *tls_keyfile; /* TLS Client Key File */
92 char *director; /* bind to director */
93 utime_t heartbeat_interval; /* Cons heartbeat interval */
95 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
101 inline char *CONRES::name() const { return hdr.name; }
104 /* Define the Union of all the above
105 * resource structure definitions.
114 typedef union u_res URES;
116 #define GetConsoleResWithName(x) ((CONRES *)GetResWithName(R_CONSOLE, (x)))
117 #define GetDirResWithName(x) ((DIRRES *)GetResWithName(R_DIRECTOR, (x)))
120 #endif /* _BAT_CONF_H_ */