2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 00:35:14 +00:00

Only include log_client.h if SUDOERS_LOG_CLIENT is defined.

This commit is contained in:
Todd C. Miller
2021-10-21 19:46:35 -06:00
parent cf47187eb5
commit 00f0c233b2
6 changed files with 27 additions and 18 deletions

View File

@@ -25,7 +25,6 @@
#endif /* HAVE_OPENSSL */
#include "log_server.pb-c.h"
#include "strlist.h"
#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error protobuf-c version 1.30 or higher required
@@ -48,20 +47,6 @@ struct connection_buffer {
};
TAILQ_HEAD(connection_buffer_list, connection_buffer);
struct log_details {
struct eventlog *evlog;
struct sudoers_str_list *log_servers;
struct timespec server_timeout;
#if defined(HAVE_OPENSSL)
char *ca_bundle;
char *cert_file;
char *key_file;
#endif /* HAVE_OPENSSL */
bool keepalive;
bool verify_server;
bool ignore_log_errors;
};
enum client_state {
ERROR,
RECV_HELLO,