X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=includes.h;h=401a0e4f22d28fba3dd969bb38b69bb3ab8554cc;hb=5dc1cdecb149196c944c3a0983051eeae6c2b3a0;hp=776a94030a9a51bea613512e1c04d77b8e3dcc97;hpb=4f7ed3854a4db241401f5b84cbb6246a06a17561;p=opendoas.git diff --git a/includes.h b/includes.h index 776a940..401a0e4 100644 --- a/includes.h +++ b/includes.h @@ -1,26 +1,25 @@ #ifndef INCLUDES_H #define INCLUDES_H -#ifndef __UNUSED -# define __UNUSED __attribute__ ((unused)) -#endif - -#ifndef __dead -# define __dead -#endif - #ifndef _PATH_TTY # define _PATH_TTY "/dev/tty" #endif -#ifdef HAVE_READPASSPHRASE_H -# include -#endif #include "openbsd.h" -#ifdef HAVE_PAM_APPL_H -int doas_pam(const char *user, const char *ruser, int interactive, int nopass); +#ifdef USE_PAM +void pamauth(const char *, const char *, int, int, int); +#endif + +#ifdef USE_SHADOW +void shadowauth(const char *, int); +#endif + +#ifdef USE_TIMESTAMP +int timestamp_open(int *, int); +int timestamp_set(int, int); +int timestamp_clear(void); #endif #endif /* INCLUDES_H */