diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:45:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:45:32 +0000 |
commit | 3cdb6743f792f9b6705b352c9e4a5b502b1f5993 (patch) | |
tree | 7376e1c66c8394055fb1d79aa47abdca65c7a0a2 /tcpsyslog.h | |
parent | 83da22c61ec3a3cb3911112591b22aa7d4d037b8 (diff) | |
download | rsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.tar.gz rsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.tar.xz rsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.zip |
applied enhanced gss-api functionality provided by varmojfekoj
Diffstat (limited to 'tcpsyslog.h')
-rw-r--r-- | tcpsyslog.h | 6 |
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 */ |