#include <RadiusSecret.h>
Public Member Functions | |
RadiusSecret () | |
Constructor. | |
RadiusSecret (const char *p_string) | |
Constructor. | |
RadiusSecret (const RadiusSecret &other) | |
Copy constructor. | |
int | getSecret (const unsigned char *&p_data, uint16_t &p_length) |
Get secret key. | |
int | setSecret (const unsigned char *p_data, uint16_t p_length) |
Set secret key. | |
Private Attributes | |
unsigned char | m_secret [D_SECRET_MAX_LENGTH] |
Secret key data. | |
uint16_t | m_secretLength |
Secret key length. |
|
Constructor. Construct secret key from NULL-terminated string (NULL terminator is not copied into the key). If you need to create secret key with non-readable characters, use setSecretKey() method instead.
|
|
Get secret key. Get secret key. Note that secret key may contain not-readable characters and should not be null-terminated. Hence application should not use strcpy()-like functions on the returned value.
|
|
Set secret key. Set secret key. Note that secret key may contain not-readable characters and should not be null-terminated.
|