Main Page | Class Hierarchy | Class List | File List | Class Members

tacpp::TacacsPacket Class Reference

Low-level tacacs+ packet processing - encrypt/decrypt. More...

#include <Tacacs.h>

Inheritance diagram for tacpp::TacacsPacket:

tacpp::Packet tacpp::TacacsClient List of all members.

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)

Detailed Description

Low-level tacacs+ packet processing - encrypt/decrypt.

LAYER 2 of tacacs+ (first layer - low-level packet work)

See also:
Packet md5
Author:
rv
Version:
1


Constructor & Destructor Documentation

TacacsPacket::TacacsPacket const char *  ,
const char *  ,
int  ,
unsigned  int
 

init

TacacsPacket::~TacacsPacket  ) 
 

drop, clear


Member Function Documentation

void TacacsPacket::create_md5_hash int  ,
unsigned  char,
unsigned  char,
unsigned char *  ,
unsigned char * 
 

create hash

int TacacsPacket::getAborted  ) 
 

aborted_

string TacacsPacket::getKey  ) 
 

key_

int TacacsPacket::getKeyline  ) 
 

keyline_

time_t TacacsPacket::getLastExch  ) 
 

last_exch_

string TacacsPacket::getPeer  ) 
 

peer_

int TacacsPacket::getSeqNo  ) 
 

seq_no_

unsigned int TacacsPacket::getSessionId  ) 
 

session_id_

int TacacsPacket::getSock  ) 
 

Returns:
sock_ value

unsigned char TacacsPacket::getVersion  ) 
 

version_

bool TacacsPacket::md5_xor HDR *  ,
unsigned char * 
 

do xor with hash

unsigned char * TacacsPacket::read_packet unsigned char *   ) 
 

read and decrypt packet without header (if header was readed before)

unsigned char * TacacsPacket::read_packet  ) 
 

read and decrypt packet from NAS

int TacacsPacket::selector unsigned char *   ) 
 

returns type of packet (authentication, authoriz, accounting)

void TacacsPacket::setAborted int   ) 
 

set aborted flag

void TacacsPacket::setKey string   ) 
 

set key value

Parameters:
key key value

void TacacsPacket::setKeyline int   ) 
 

set key line

void TacacsPacket::setLastExch time_t   ) 
 

set last exch value

void TacacsPacket::setPeer string   ) 
 

set peer

void TacacsPacket::setSeqNo int   ) 
 

set sequence number

void TacacsPacket::setSessionId unsigned  int  ) 
 

set session id

void TacacsPacket::setSock int   ) 
 

set sock_ value

void TacacsPacket::setVersion unsigned  char  ) 
 

set version

bool TacacsPacket::write_packet unsigned char *  buf  ) 
 

send packet to NAS, encrypt it


The documentation for this class was generated from the following files:
Generated on Thu Jul 21 23:09:49 2005 for tacppd.kdevelop by doxygen 1.3.5