Module: check_mk
Branch: master
Commit: c0917a3b891adfc828459bc153a00a925fe68ce4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0917a3b891adf…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 2 12:15:00 2017 +0100
Merge duplicate auth.h
Change-Id: I34adfb84e8d0656a10899361c3c866d3b0469d8f
---
livestatus/src/auth.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/livestatus/src/auth.h b/livestatus/src/auth.h
index 6a51aea..2d1b0bc 100644
--- a/livestatus/src/auth.h
+++ b/livestatus/src/auth.h
@@ -26,14 +26,25 @@
#define auth_h
#include "config.h" // IWYU pragma: keep
+
+#ifdef CMC
+class Contact;
+#else
#include "nagios.h" // IWYU pragma: keep
+#endif
enum class AuthorizationKind { loose = 0, strict = 1 };
+#ifdef CMC
+inline Contact *unknown_auth_user() {
+ return reinterpret_cast<Contact *>(0xdeadbeaf);
+}
+#else
extern AuthorizationKind g_service_authorization;
extern AuthorizationKind g_group_authorization;
contact *unknown_auth_user();
bool is_authorized_for(contact *ctc, host *hst, service *svc);
+#endif
#endif // auth_h