X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=doas.h;h=ecf0db222f7fc5101c940fdf39c02517429c9ad8;hp=1e9a0e599475306424f8768c710b40e5b976f43a;hb=HEAD;hpb=edb30a0b44cff296d3e948a38a99d425201a8f2e diff --git a/doas.h b/doas.h index 1e9a0e5..ecf0db2 100644 --- a/doas.h +++ b/doas.h @@ -43,14 +43,9 @@ 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); @@ -59,4 +54,4 @@ int timestamp_clear(void); #endif const char * getinsult(void); -void authfail(void); +void authfail(int);