diff options
author | syrinx <syrinx@FreeBSD.org> | 2009-12-11 07:53:44 +0000 |
---|---|---|
committer | syrinx <syrinx@FreeBSD.org> | 2009-12-11 07:53:44 +0000 |
commit | c5bdafde93e935fa27a3919a5d935c893d58c173 (patch) | |
tree | f345d4d4a5390c125ee6b526c3d8bac3984aca9a /lib/libtacplus/taclib.h | |
parent | 2e6099f49402daa4b66bfb4e4a8279609e318955 (diff) | |
download | FreeBSD-src-c5bdafde93e935fa27a3919a5d935c893d58c173.zip FreeBSD-src-c5bdafde93e935fa27a3919a5d935c893d58c173.tar.gz |
Add support for TACACS+ accounting to libtacplus(3).
Submitted by: Michael Pounov misho@aitbg.com
OKed by: emaste
Diffstat (limited to 'lib/libtacplus/taclib.h')
-rw-r--r-- | lib/libtacplus/taclib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libtacplus/taclib.h b/lib/libtacplus/taclib.h index 2ef36b9..46b9a59 100644 --- a/lib/libtacplus/taclib.h +++ b/lib/libtacplus/taclib.h @@ -103,6 +103,17 @@ struct tac_handle; #define TAC_AUTHOR_STATUS_FAIL 0x10 #define TAC_AUTHOR_STATUS_ERROR 0x11 +/* Accounting actions */ +#define TAC_ACCT_MORE 0x1 +#define TAC_ACCT_START 0x2 +#define TAC_ACCT_STOP 0x4 +#define TAC_ACCT_WATCHDOG 0x8 + +/* Accounting status */ +#define TAC_ACCT_STATUS_SUCCESS 0x1 +#define TAC_ACCT_STATUS_ERROR 0x2 +#define TAC_ACCT_STATUS_FOLLOW 0x21 + __BEGIN_DECLS int tac_add_server(struct tac_handle *, const char *, int, const char *, int, int); @@ -127,6 +138,8 @@ int tac_set_av(struct tac_handle *, u_int, const char *); char *tac_get_av(struct tac_handle *, u_int); char *tac_get_av_value(struct tac_handle *, const char *); void tac_clear_avs(struct tac_handle *); +int tac_create_acct(struct tac_handle *, int, int, int, int); +int tac_send_acct(struct tac_handle *); __END_DECLS #endif /* _TACLIB_H_ */ |