X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=doas.h;h=ecf0db222f7fc5101c940fdf39c02517429c9ad8;hp=c38fca2de968c017516d847c43b76768237c2384;hb=HEAD;hpb=0a42dd6437c3c056e8e5c99096ce7e060cabcc0d diff --git a/doas.h b/doas.h index c38fca2..ecf0db2 100644 --- a/doas.h +++ b/doas.h @@ -26,7 +26,7 @@ struct rule { }; extern struct rule **rules; -extern int nrules; +extern size_t nrules; extern int parse_errors; extern const char *formerpath; @@ -43,17 +43,15 @@ 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); -#endif - -#ifdef USE_SHADOW -void shadowauth(const char *, int); -#endif +int shadowauth(const char *, int); #ifdef USE_TIMESTAMP int timestamp_open(int *, int); int timestamp_set(int, int); int timestamp_clear(void); #endif + +const char * getinsult(void); +void authfail(int);