#include <Tacacs.h>
Inheritance diagram for tacpp::TacacsPacket:
Public Member Functions | |
TacacsPacket (const char *, const char *, int, unsigned int) | |
~TacacsPacket () | |
int | selector (unsigned char *) |
unsigned int | getSessionId () |
void | setSessionId (unsigned int) |
int | getAborted () |
void | setAborted (int) |
int | getSeqNo () |
void | setSeqNo (int) |
int | getSock () |
void | setSock (int) |
time_t | getLastExch () |
void | setLastExch (time_t) |
string | getKey () |
void | setKey (string) |
int | getKeyline () |
void | setKeyline (int) |
string | getPeer () |
void | setPeer (string) |
unsigned char | getVersion () |
void | setVersion (unsigned char) |
void | create_md5_hash (int, unsigned char, unsigned char, unsigned char *, unsigned char *) |
bool | md5_xor (HDR *, unsigned char *) |
unsigned char * | read_packet () |
unsigned char * | read_packet (unsigned char *) |
bool | write_packet (unsigned char *buf) |
LAYER 2 of tacacs+ (first layer - low-level packet work)
|
init |
|
drop, clear |
|
create hash |
|
aborted_ |
|
key_ |
|
keyline_ |
|
last_exch_ |
|
peer_ |
|
seq_no_ |
|
session_id_ |
|
|
|
version_ |
|
do xor with hash |
|
read and decrypt packet without header (if header was readed before) |
|
read and decrypt packet from NAS |
|
returns type of packet (authentication, authoriz, accounting) |
|
set aborted flag |
|
set key value
|
|
set key line |
|
set last exch value |
|
set peer |
|
set sequence number |
|
set session id |
|
set sock_ value |
|
set version |
|
send packet to NAS, encrypt it |