Typedef anj_security_get_cert_info_handler_t

Typedef Documentation

typedef int anj_security_get_cert_info_handler_t(const anj_t *anj, bool bootstrap_credentials, anj_net_certificate_info_t *out_cert_info)

Retrieves certificate-based security 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_cert_info:

[out] Output parameter for certificate-based security information.

Return:

0 in case of success, negative value in case of error.