diff options
Diffstat (limited to 'tacplus-daemon/parser.h')
-rw-r--r-- | tacplus-daemon/parser.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tacplus-daemon/parser.h b/tacplus-daemon/parser.h new file mode 100644 index 0000000..cdfa417 --- /dev/null +++ b/tacplus-daemon/parser.h @@ -0,0 +1,30 @@ +/* + TACACS+ D-Bus Daemon code + + Copyright (c) 2018 AT&T Intellectual Property. + Copyright (c) 2015-2016 Brocade Communications Systems, Inc. + + SPDX-License-Identifier: GPL-2.0-only +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <netdb.h> +#include "tacplus_srv_conn.h" +#include <syslog.h> + +#define TACPLUS_MAX_SERVERS 100 + +struct connection { + struct addrinfo *addr; + const char *secret; + int timeout; + unsigned hold_down; + struct addrinfo *src_addr; + const char *src_intf; +}; + +void read_config(const char *, struct tacplus_options **); |