00001
00002
00003
00004
00005
00006
00007
00008
#ifndef _RADIUSSECRET_H__
00009
#define _RADIUSSECRET_H__
00010
00011
00012
#include "Radius.h"
00013
00014
#define D_SECRET_MAX_LENGTH 256
00015
00016
00023 class RadiusSecret
00024 {
00025
public:
00027
RadiusSecret();
00028
00030
00038
RadiusSecret(
const char * p_string);
00039
00041
RadiusSecret(
const RadiusSecret & other);
00042
00043
00045
00054
int getSecret(
const unsigned char * & p_data, uint16_t & p_length);
00055
00057
00065
int setSecret(
const unsigned char * p_data, uint16_t p_length);
00066
00067
00068
private:
00070 unsigned char m_secret[D_SECRET_MAX_LENGTH];
00071
00073 uint16_t
m_secretLength;
00074
00075 };
00076
00077
00078
#endif // _RADIUSSECRET_H__
00079