summaryrefslogtreecommitdiffstats
path: root/tcpsyslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcpsyslog.h')
-rw-r--r--tcpsyslog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcpsyslog.h b/tcpsyslog.h
index 45ad717e..adf98f0c 100644
--- a/tcpsyslog.h
+++ b/tcpsyslog.h
@@ -40,6 +40,7 @@ struct TCPSession {
#if defined(SYSLOG_INET) && defined(USE_GSSAPI)
OM_uint32 gss_flags;
gss_ctx_id_t gss_context;
+ char allowedMethods;
#endif
};
@@ -50,8 +51,12 @@ extern int bEnableTCP;
extern struct TCPSession *pTCPSessions;
#if defined(SYSLOG_INET) && defined(USE_GSSAPI)
extern char *gss_listen_service_name;
+
+#define ALLOWEDMETHOD_GSS 2
#endif
+#define ALLOWEDMETHOD_TCP 1
+
/* prototypes */
void deinit_tcp_listener(void);
int *create_tcp_socket(void);
@@ -66,6 +71,7 @@ int TCPSessGSSInit(void);
int TCPSessGSSAccept(int fd);
int TCPSessGSSRecv(int fd, void *buf, size_t buf_len);
void TCPSessGSSClose(int sess);
+void TCPSessGSSDeinit(void);
#endif
#endif /* #ifndef TCPSYSLOG_H_INCLUDED */