]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/console_conf.h
Fix bug # 746 - Windows FD crashes when job canceled
[bacula/bacula] / bacula / src / console / console_conf.h
1 /*
2  * Bacula User Agent specific configuration and defines
3  *
4  *     Kern Sibbald, Sep MM
5  *
6  *     Version $Id$
7  */
8 /*
9    Bacula® - The Network Backup Solution
10
11    Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
12
13    The main author of Bacula is Kern Sibbald, with contributions from
14    many others, a complete list can be found in the file AUTHORS.
15    This program is Free Software; you can redistribute it and/or
16    modify it under the terms of version two of the GNU General Public
17    License as published by the Free Software Foundation plus additions
18    that are listed in the file LICENSE.
19
20    This program is distributed in the hope that it will be useful, but
21    WITHOUT ANY WARRANTY; without even the implied warranty of
22    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23    General Public License for more details.
24
25    You should have received a copy of the GNU General Public License
26    along with this program; if not, write to the Free Software
27    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28    02110-1301, USA.
29
30    Bacula® is a registered trademark of John Walker.
31    The licensor of Bacula is the Free Software Foundation Europe
32    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
33    Switzerland, email:ftf@fsfeurope.org.
34 */
35
36 /*
37  * Resource codes -- they must be sequential for indexing
38  */
39
40 enum {
41    R_CONSOLE   = 1001,
42    R_DIRECTOR,
43    R_FIRST     = R_CONSOLE,
44    R_LAST      = R_DIRECTOR           /* Keep this updated */
45 };
46
47 /*
48  * Some resource attributes
49  */
50 enum {
51    R_NAME     = 1020,
52    R_ADDRESS,
53    R_PASSWORD,
54    R_TYPE,
55    R_BACKUP
56 };
57
58
59 /* Definition of the contents of each Resource */
60
61 /* Console "globals" */
62 struct CONRES {
63    RES   hdr;
64    char *rc_file;                     /* startup file */
65    char *hist_file;                   /* command history file */
66    char *password;                    /* UA server password */
67    int tls_enable;                    /* Enable TLS on all connections */
68    int tls_require;                   /* Require TLS on all connections */
69    char *tls_ca_certfile;             /* TLS CA Certificate File */
70    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
71    char *tls_certfile;                /* TLS Client Certificate File */
72    char *tls_keyfile;                 /* TLS Client Key File */
73    char *director;                    /* bind to director */
74
75    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
76 };
77
78 /* Director */
79 struct DIRRES {
80    RES   hdr;
81    int   DIRport;                     /* UA server port */
82    char *address;                     /* UA server address */
83    char *password;                    /* UA server password */
84    int tls_enable;                    /* Enable TLS */
85    int tls_require;                   /* Require TLS */
86    char *tls_ca_certfile;             /* TLS CA Certificate File */
87    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
88    char *tls_certfile;                /* TLS Client Certificate File */
89    char *tls_keyfile;                 /* TLS Client Key File */
90
91    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
92 };
93
94
95 /* Define the Union of all the above
96  * resource structure definitions.
97  */
98 union URES {
99    DIRRES res_dir;
100    CONRES res_cons;
101    RES hdr;
102 };