X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=doas.h;fp=doas.h;h=b1fbac089eebd7b85ddca551ab6de2d9f7dad2dd;hp=1e9a0e599475306424f8768c710b40e5b976f43a;hb=b5d211d5d75b031f70e12565e704e7a9c817df83;hpb=71b759e2542878de5c75a7101f2400cf35ec6299 diff --git a/doas.h b/doas.h index 1e9a0e5..b1fbac0 100644 --- 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 @@ -59,4 +60,4 @@ int timestamp_clear(void); #endif const char * getinsult(void); -void authfail(void); +void authfail(int);