aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cerberus.c')
-rw-r--r--src/cerberus.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index 3a7b9af..f8927f0 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -24,13 +24,25 @@
#include <errno.h>
+/**
+ * Index of the hook used when the user logs in.
+ */
#define HOOK_LOGIN 0
+
+/**
+ * Index of the hook used when the user logs out.
+ */
#define HOOK_LOGOUT 1
-#define HOOK_DENIED 2
-#define HOOK_VERIFY 3
+/**
+ * Index of the hook used when the user was denied access.
+ */
+#define HOOK_DENIED 2
-#define close(fd) while (((close)(fd) < 0) && (errno == EINTR))
+/**
+ * Index of the hook used to verify that the user may log in.
+ */
+#define HOOK_VERIFY 3