]> git.armaanb.net Git - opendoas.git/blobdiff - includes.h
libopenbsd: clean up readpassphrase compat and fix ifdefs
[opendoas.git] / includes.h
index dd4bc6325a2a4c6923b81ec56be3c8af7ce5bd93..911d903c8c6d15459cf89e8ba2408656373fb8ad 100644 (file)
@@ -1,32 +1,20 @@
 #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
+#include "openbsd.h"
 
-#ifdef HAVE_READPASSPHRASE_H
-# include <readpassphrase.h>
+#ifdef USE_PAM
+void pamauth(const char *, const char *, int, int, int);
 #endif
 
-#include "openbsd.h"
-
-#ifdef HAVE_PAM_APPL_H
-int pamauth(const char *, const char *, int, int);
+#ifdef USE_SHADOW
+void shadowauth(const char *, int);
 #endif
 
-#ifdef PERSIST_TIMESTAMP
-int persist_open(int *, int);
-int persist_set(int, int);
-int persist_clear();
+#ifdef USE_TIMESTAMP
+int timestamp_open(int *, int);
+int timestamp_set(int, int);
+int timestamp_clear(void);
 #endif
 
 #endif /* INCLUDES_H */