diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-21 21:15:04 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-21 21:15:04 +0100 |
commit | 382fccc29404671b6cc7b2b599c15e32e306ee4f (patch) | |
tree | 76f2b497a83bc3ef37f5cbaa539af753526ff875 /src/pam.h | |
parent | some work on pam usage (diff) | |
download | libpassphrase-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 'src/pam.h')
-rw-r--r-- | src/pam.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |