Morse Micro IoT SDK  2.9.7

Detailed Description

Functions

static enum mmagic_status mmagic_controller_get_tls_root_ca_certificate (struct mmagic_controller *controller, struct raw1536 *var)
 Gets root_ca_certificate setting for module tls. More...
 
static enum mmagic_status mmagic_controller_set_tls_root_ca_certificate (struct mmagic_controller *controller, struct raw1536 *var)
 Sets root_ca_certificate setting for module tls. More...
 
static enum mmagic_status mmagic_controller_get_tls_client_certificate (struct mmagic_controller *controller, struct raw1536 *var)
 Gets client_certificate setting for module tls. More...
 
static enum mmagic_status mmagic_controller_set_tls_client_certificate (struct mmagic_controller *controller, struct raw1536 *var)
 Sets client_certificate setting for module tls. More...
 
static enum mmagic_status mmagic_controller_get_tls_client_private_key (struct mmagic_controller *controller, struct raw1536 *var)
 Gets client_private_key setting for module tls. More...
 
static enum mmagic_status mmagic_controller_set_tls_client_private_key (struct mmagic_controller *controller, struct raw1536 *var)
 Sets client_private_key setting for module tls. More...
 
static enum mmagic_status mmagic_controller_tls_commit_all (struct mmagic_controller *controller)
 Saves all settings from persistent store. More...
 

Function Documentation

◆ mmagic_controller_get_tls_client_certificate()

static enum mmagic_status mmagic_controller_get_tls_client_certificate ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Gets client_certificate setting for module tls.

Certificate to identify the client. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5186 of file mmagic_controller.h.

◆ mmagic_controller_get_tls_client_private_key()

static enum mmagic_status mmagic_controller_get_tls_client_private_key ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Gets client_private_key setting for module tls.

Client private key. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5239 of file mmagic_controller.h.

◆ mmagic_controller_get_tls_root_ca_certificate()

static enum mmagic_status mmagic_controller_get_tls_root_ca_certificate ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Gets root_ca_certificate setting for module tls.

Root certificate authority certificate. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5132 of file mmagic_controller.h.

◆ mmagic_controller_set_tls_client_certificate()

static enum mmagic_status mmagic_controller_set_tls_client_certificate ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Sets client_certificate setting for module tls.

Certificate to identify the client. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5213 of file mmagic_controller.h.

◆ mmagic_controller_set_tls_client_private_key()

static enum mmagic_status mmagic_controller_set_tls_client_private_key ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Sets client_private_key setting for module tls.

Client private key. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5265 of file mmagic_controller.h.

◆ mmagic_controller_set_tls_root_ca_certificate()

static enum mmagic_status mmagic_controller_set_tls_root_ca_certificate ( struct mmagic_controller *  controller,
struct raw1536 var 
)
inlinestatic

Sets root_ca_certificate setting for module tls.

Root certificate authority certificate. Supported formats are PEM and DER. Must be null terminated if in PEM format.

Parameters
controllerReference to the controller handle.
varReference to the raw1536 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5159 of file mmagic_controller.h.

◆ mmagic_controller_tls_commit_all()

static enum mmagic_status mmagic_controller_tls_commit_all ( struct mmagic_controller *  controller)
inlinestatic

Saves all settings from persistent store.

Parameters
controllerReference to the controller handle.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 5288 of file mmagic_controller.h.