5 Copyright (C) 2000-2005 Kern Sibbald
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as amended with additional clauses defined in the
10 file LICENSE in the main source directory.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 the file LICENSE for additional details.
26 * Resource codes -- they must be sequential for indexing
30 #define R_CONSOLE 1001
31 #define R_DIRECTOR 1002
33 #define R_LAST R_DIRECTOR
36 * Some resource attributes
39 #define R_ADDRESS 1021
40 #define R_PASSWORD 1022
45 /* Definition of the contents of each Resource */
47 /* Console "globals" */
50 char *rc_file; /* startup file */
51 char *hist_file; /* command history file */
52 char *password; /* UA server password */
53 int tls_enable; /* Enable TLS on all connections */
54 int tls_require; /* Require TLS on all connections */
55 char *tls_ca_certfile; /* TLS CA Certificate File */
56 char *tls_ca_certdir; /* TLS CA Certificate Directory */
57 char *tls_certfile; /* TLS Client Certificate File */
58 char *tls_keyfile; /* TLS Client Key File */
60 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
62 typedef struct s_res_con CONRES;
67 int DIRport; /* UA server port */
68 char *address; /* UA server address */
69 char *password; /* UA server password */
70 int tls_enable; /* Enable TLS on all connections */
71 int tls_require; /* Require TLS on all connections */
72 char *tls_ca_certfile; /* TLS CA Certificate File */
73 char *tls_ca_certdir; /* TLS CA Certificate Directory */
74 char *tls_certfile; /* TLS Client Certificate File */
75 char *tls_keyfile; /* TLS Client Key File */
77 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
79 typedef struct s_res_dir DIRRES;
82 /* Define the Union of all the above
83 * resource structure definitions.
86 struct s_res_dir res_dir;
87 struct s_res_con res_cons;
91 typedef union u_res URES;
93 #endif // CONSOLECONF_H