#ifndef DO_ACCT_H #define DO_ACCT_H 1 #include "tac_plus.h" /* An API accounting record structure */ struct acct_rec { int acct_type; /* start, stop, update */ #define ACCT_TYPE_START 1 #define ACCT_TYPE_STOP 2 #define ACCT_TYPE_UPDATE 3 struct identity *identity; int authen_method; int authen_type; int authen_service; char *msg; /* output field */ char *admin_msg; /* output field */ int num_args; char **args; }; extern char *wtmpfile; /* for wtmp file logging */ extern int do_acct TAC_ARGS((struct acct_rec *rec)); extern char *find_attr_value TAC_ARGS((char *attr, char **args, int cnt)); extern int do_wtmp TAC_ARGS((struct acct_rec *rec)); #endif /* DO_ACCT_H */