]> git.armaanb.net Git - opendoas.git/blobdiff - includes.h
libopenbsd: clean up readpassphrase compat and fix ifdefs
[opendoas.git] / includes.h
index e9ebf6364da8d6365097b9511862bcc8ec76d62a..911d903c8c6d15459cf89e8ba2408656373fb8ad 100644 (file)
@@ -1,26 +1,20 @@
 #ifndef INCLUDES_H
 #define INCLUDES_H
 
-#ifndef __UNUSED
-# define __UNUSED __attribute__ ((unused))
-#endif
-
-#ifndef __dead
-# define __dead
-#endif
+#include "openbsd.h"
 
-#ifndef _PATH_TTY
-# define _PATH_TTY "/dev/tty"
+#ifdef USE_PAM
+void pamauth(const char *, const char *, int, int, int);
 #endif
 
-#ifdef HAVE_READPASSPHRASE_H
-# include <readpassphrase.h>
+#ifdef USE_SHADOW
+void shadowauth(const char *, int);
 #endif
 
-#include "openbsd.h"
-
-#ifdef HAVE_PAM_APPL_H
-int doas_pam(char *name, int interactive, int nopass);
+#ifdef USE_TIMESTAMP
+int timestamp_open(int *, int);
+int timestamp_set(int, int);
+int timestamp_clear(void);
 #endif
 
 #endif /* INCLUDES_H */