Typedef anj_security_get_psk_info_handler_t
Defined in File security.h
Typedef Documentation
-
typedef int anj_security_get_psk_info_handler_t(const anj_t *anj, bool bootstrap_credentials, anj_net_psk_info_t *out_psk_info)
Retrieves the Pre-Shared Key (PSK) information for the specified connection.
The callback is expected to return credentials corresponding to the Security Object instance used for the given connection.
Note
Anjay Lite supports only one non-Bootstrap Server LwM2M Server.
- Param anj:
Anjay object.
- Param bootstrap_credentials:
If true, retrieves credentials for the Bootstrap Server, otherwise for the regular LwM2M Server.
- Param out_psk_info:
[out] Output parameter for the PSK information.
- Return:
0 in case of success, negative value in case of error.