aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-22 09:45:40 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-22 09:45:40 +0100
commit4b204339078eb55ba9309f1fd669b1792d6b43c6 (patch)
treeee1d4a016b24b92201ceada7c1b991a69d8e8af4 /src/auth.h
parentfix chmod and chown of tty device files (diff)
downloadlibpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.gz
libpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.bz2
libpassphrase-4b204339078eb55ba9309f1fd669b1792d6b43c6.tar.xz
add crypt auth module
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/auth.h')
-rw-r--r--src/auth.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/auth.h b/src/auth.h
index c24a70d..3851b95 100644
--- a/src/auth.h
+++ b/src/auth.h
@@ -31,6 +31,15 @@
#elif AUTH == 1
+#include "auth/crypt.h"
+#define close_login_session(...) /* do nothing */
+#define initialise_login initialise_crypt
+#define authenticate_login authenticate_crypt
+#define verify_account(...) /* do nothing */
+#define open_login_session(...) /* do nothing */
+
+#elif AUTH == 2
+
#include "auth/pam.h"
#define close_login_session close_session_pam
#define initialise_login initialise_pam