From 382fccc29404671b6cc7b2b599c15e32e306ee4f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 Nov 2013 21:15:04 +0100 Subject: auth with pam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/pam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/pam.h') 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 -- cgit v1.2.3-70-g09d2