Revision 6506844ce552cc4fdc57b79f3b54d6b242043be5 authored by B. W. Lewis on 21 February 2015, 23:34:38 UTC, committed by B. W. Lewis on 21 February 2015, 23:34:38 UTC
1 parent 32b279b
Raw File
pam.h
#include <time.h>
#define TOK_BUF 128
int do_pam_login (char *, char *, char *);
unsigned long authtoken();
/* List of authenticated user tokens */
typedef struct
{
  unsigned long val;       // The token
  time_t time;             // last access time (used to timeout tokens)
  uid_t uid;
  void *next;
} token_list;
token_list * addtoken(token_list *, unsigned long, uid_t uid);
token_list * removetoken(token_list *, unsigned long);
uid_t username2uid(char *username);
back to top