TR181-XPON
1.4.0
TR-181 PON manager.
|
#include <stdbool.h>
Go to the source code of this file.
Functions | |
bool | passwd_check_password (const char *const ani_auth_path, const char *const password) |
void | passwd_set_password (const char *const ani_auth_path, const char *const password) |
void | passwd_restore_password (const char *const ani_path) |
Functions related to the PON password.
Definition in file password.h.
bool passwd_check_password | ( | const char *const | ani_path, |
const char *const | password | ||
) |
Return true if the password is valid, else return false.
[in] | ani_path | path to ANI instance, e.g. "XPON.ONU.1.ANI.1" |
[in] | password | possible new value for the parameter Password of the ANI instance referred to by ani_path. |
The function looks at other parameters of the ANI referred to by ani_path to determine if the password is valid. E.g. if ani_path is "XPON.ONU.1.ANI.1", it looks at:
Definition at line 99 of file password.c.
void passwd_restore_password | ( | const char *const | ani_path | ) |
Restore the PON password for an ANI: in DM and towards vendor module.
[in] | ani_path | path to ANI instance, e.g. "XPON.ONU.1.ANI.1" |
Check if there is a saved PON password for the ANI. If there is, update its Password parameter (and its HexadecimalPassword parameter) in the DM. The update in the DM causes the Ambiorix framework to call the same functions as when another component or user updates the Password parameter: _check_password() and _password_changed(). The latter function call among others forwards the password to the vendor module.
Definition at line 237 of file password.c.
void passwd_set_password | ( | const char *const | ani_path, |
const char *const | password | ||
) |
Set the password of an ANI instance.
[in] | ani_path | path to ANI instance, e.g. "XPON.ONU.1.ANI.1" |
[in] | password | new value for the parameter Password of the ANI referred to by ani_path |
The function forwards the value to:
Definition at line 168 of file password.c.