aboutsummaryrefslogtreecommitdiffstats
path: root/src/pam.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pam.h')
-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