summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_log.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-12-08 12:05:06 -0500
committerSimo Sorce <simo@redhat.com>2015-03-21 14:12:42 -0400
commit13afa2608e1e7d8e757295dda35fa1def1be663f (patch)
tree02658157d07e54823785e95ee63a959fac42bae7 /proxy/src/gp_log.h
parent91709e90f47a7e4542c9d299bf0975bedc2e6df9 (diff)
downloadgss-proxy-13afa2608e1e7d8e757295dda35fa1def1be663f.tar.gz
gss-proxy-13afa2608e1e7d8e757295dda35fa1def1be663f.tar.xz
gss-proxy-13afa2608e1e7d8e757295dda35fa1def1be663f.zip
Generalize GSS Display Status logger code
This way it can be used both in stderr debugging as well as for sending errors to syslog. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src/gp_log.h')
-rw-r--r--proxy/src/gp_log.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/proxy/src/gp_log.h b/proxy/src/gp_log.h
index f3549d1..36ed8d8 100644
--- a/proxy/src/gp_log.h
+++ b/proxy/src/gp_log.h
@@ -27,10 +27,17 @@
#define _GP_LOG_H_
#include <syslog.h>
+#include <gssapi/gssapi.h>
+#define MAX_LOG_LINE 1024
#define GPERROR(...) syslog(LOG_ERR, __VA_ARGS__);
#define GPAUDIT(...) syslog(LOG_INFO, __VA_ARGS__);
void gp_logging_init(void);
+void gp_fmt_status(gss_OID mech, uint32_t maj, uint32_t min,
+ char *buf, size_t buf_size);
+
+void gp_log_status(gss_OID mech, uint32_t maj, uint32_t min);
+
#endif /* _GP_LOG_H_ */