aboutsummaryrefslogtreecommitdiffstats
path: root/src/pam.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-21 21:15:04 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-21 21:15:04 +0100
commit382fccc29404671b6cc7b2b599c15e32e306ee4f (patch)
tree76f2b497a83bc3ef37f5cbaa539af753526ff875 /src/pam.h
parentsome work on pam usage (diff)
downloadlibpassphrase-382fccc29404671b6cc7b2b599c15e32e306ee4f.tar.gz
libpassphrase-382fccc29404671b6cc7b2b599c15e32e306ee4f.tar.bz2
libpassphrase-382fccc29404671b6cc7b2b599c15e32e306ee4f.tar.xz
auth with pam
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/pam.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pam.h b/src/pam.h
index 4c793d3..ee766df 100644
--- a/src/pam.h
+++ b/src/pam.h
@@ -25,8 +25,9 @@
*
* @param remote The remote computer, {@code NULL} for local login
* @param username The username of the user to log in to
+ * @param reader Function that can be used to read a passphrase from the terminal
*/
-void initialise_pam(char* remote, char* username);
+void initialise_pam(char* remote, char* username, char* (*reader)(void));
/**
* Verify that the account may be used
@@ -43,6 +44,13 @@ void open_session_pam(void);
*/
void close_session_pam(void);
+/**
+ * Perform token authentication
+ *
+ * @return Whether the user got automatically authenticated
+ */
+char authenticate_pam(void);
+
#endif