]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
Add insult option to doas.conf
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index a8aa41bee6b9ead7e6a8873436852fa2f7054046..b1fbac089eebd7b85ddca551ab6de2d9f7dad2dd 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -43,13 +43,14 @@ char **prepenv(const struct rule *, const struct passwd *,
 #define KEEPENV                0x2
 #define PERSIST                0x4
 #define NOLOG          0x8
+#define INSULT         0x10
 
 #ifdef USE_PAM
-void pamauth(const char *, const char *, int, int, int);
+int pamauth(const char *, const char *, int, int, int);
 #endif
 
 #ifdef USE_SHADOW
-void shadowauth(const char *, int);
+int shadowauth(const char *, int);
 #endif
 
 #ifdef USE_TIMESTAMP
@@ -57,3 +58,6 @@ int timestamp_open(int *, int);
 int timestamp_set(int, int);
 int timestamp_clear(void);
 #endif
+
+const char * getinsult(void);
+void authfail(int);