https://github.com/Paradigm4/shim
Revision 1b73913e7ada92bb23207768b3d918a575293272 authored by B. W. Lewis on 22 February 2015, 00:20:24 UTC, committed by B. W. Lewis on 22 February 2015, 00:20:24 UTC
1 parent 6506844
Raw File
Tip revision: 1b73913e7ada92bb23207768b3d918a575293272 authored by B. W. Lewis on 22 February 2015, 00:20:24 UTC
Update README.md
Tip revision: 1b73913
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