/*
Bacula(R) - The Network Backup Solution
- Copyright (C) 2000-2018 Kern Sibbald
+ Copyright (C) 2000-2020 Kern Sibbald
The original author of Bacula is Kern Sibbald, with contributions
from many others, a complete list can be found in the file AUTHORS.
struct CONRES {
RES hdr;
char *rc_file; /* startup file */
- char *hist_file; /* command history file */
char *password; /* UA server password */
bool comm_compression; /* Enable comm line compression */
bool tls_authenticate; /* Authenticate with TLS */
bool tls_enable; /* Enable TLS on all connections */
+ bool tls_psk_enable; /* Enable TLS-PSK on all connections */
bool tls_require; /* Require TLS on all connections */
char *tls_ca_certfile; /* TLS CA Certificate File */
char *tls_ca_certdir; /* TLS CA Certificate Directory */
char *tls_keyfile; /* TLS Client Key File */
char *director; /* bind to director */
utime_t heartbeat_interval; /* Interval to send heartbeats to Dir */
-
+ bool require_fips; /* Check for FIPS module */
TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
+ TLS_CONTEXT *psk_ctx; /* Shared TLS-PSK Context */
};
/* Director */
char *password; /* UA server password */
bool tls_authenticate; /* Authenticate with TLS */
bool tls_enable; /* Enable TLS */
+ bool tls_psk_enable; /* Enable TLS-PSK */
bool tls_require; /* Require TLS */
+ bool require_fips; /* Check for FIPS module */
char *tls_ca_certfile; /* TLS CA Certificate File */
char *tls_ca_certdir; /* TLS CA Certificate Directory */
char *tls_certfile; /* TLS Client Certificate File */
char *tls_keyfile; /* TLS Client Key File */
utime_t heartbeat_interval; /* Interval to send heartbeats to Dir */
+ char *hist_file; /* command history file */
+ int32_t hist_file_size; /* command history file size */
TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
+ TLS_CONTEXT *psk_ctx; /* Shared TLS-PSK Context */
};
CONRES res_cons;
RES hdr;
};
+
+/* Get the size of a give resource */
+int get_resource_size(int type);