#include <anj/init.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <anj/defs.h>
#include <anj/dm/core.h>
Go to the source code of this file.
◆ ANJ_DM_SECURITY_OBJ_INSTANCES
#define ANJ_DM_SECURITY_OBJ_INSTANCES 2 |
◆ anj_dm_security_mode_t
Possible values of the Security Mode Resource, as described in the Security Object definition.
Enumerator |
---|
ANJ_DM_SECURITY_PSK | |
ANJ_DM_SECURITY_RPK | |
ANJ_DM_SECURITY_CERTIFICATE | |
ANJ_DM_SECURITY_NOSEC | |
ANJ_DM_SECURITY_EST | |
◆ anj_dm_security_obj_add_instance()
Adds new Instance of Security Object.
- Parameters
-
security_obj_ctx | Context of the Security Object. |
instance | Security Instance to insert. |
- Returns
- 0 in case of success, negative value in case of error.
◆ anj_dm_security_obj_init()
Initialize Security Object context. Call this function only once before adding any Instances.
- Parameters
-
security_obj_ctx | Security Object context to be initialized. |
◆ anj_dm_security_obj_install()
Installs the Security Object into the Static Data Model. Call this function after adding all Instances using anj_dm_security_obj_add_instance.
After calling this function, new Instances can be added only by LwM2M Bootstrap Server.
- Parameters
-
anj | Anjay object to operate on. |
security_obj_ctx | Context of the Security Object. |
- Returns
- 0 in case of success, negative value in case of error.