Function anj_security_register_credential_handlers
Defined in File security.h
Function Documentation
-
void anj_security_register_credential_handlers(anj_t *anj, const anj_security_credential_handlers_t *handlers)
Registers callbacks used to access credentials associated with the LwM2M Security Object.
This function should be called during Security Object installation.
If ANJ_WITH_DEFAULT_SECURITY_OBJ is enabled, the default Security Object integration registers appropriate callbacks automatically, so calling this function is only necessary when providing a custom Security Object implementation.
The
handlersstructure is not copied. The library stores only a pointer to it, so the user retains ownership and may update the registered callbacks later by modifying that structure. The user MUST ensure that the structure remains valid for as long as it may be used by the library.- Parameters:
anj – Anjay object.
handlers – Structure containing credential access callbacks.