Main Page | Class List | File List | Class Members

ace-radius/RadiusSecret.h

00001 /* 00002 * This source file is part of the ace-radius library. This code was 00003 * written by Alex Agranov in 2004-2009, and is covered by the BSD open source 00004 * license. Refer to the accompanying documentation for details on usage and 00005 * license. 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

Generated on Tue Aug 11 18:35:06 2009 for ace-radius by doxygen 1.3.7-20040704