Network Credential#

Functions#

sl_status_t
sl_net_set_credential(sl_net_credential_id_t id, sl_net_credential_type_t type, const void *credential, uint32_t credential_length)

Set a network credential including client credentials, certificates, and keys.

sl_status_t
sl_net_get_credential(sl_net_credential_id_t id, sl_net_credential_type_t *type, void *credential, uint32_t *credential_length)

Retrieve a stored network credential.

sl_status_t
sl_net_delete_credential(sl_net_credential_id_t id, sl_net_credential_type_t type)

Delete a stored network credential.

Function Documentation#

sl_net_set_credential#

sl_status_t sl_net_set_credential (sl_net_credential_id_t id, sl_net_credential_type_t type, const void * credential, uint32_t credential_length)

Set a network credential including client credentials, certificates, and keys.

Parameters
[in]id

Network credential identifier as identified by sl_net_credential_id_t

[in]type

Network credential type as identified by sl_net_credential_type_t

[in]credential

Pointer to the credential data object.

[in]credential_length

Length of the credential data object.

  • Pre-conditions:

Returns


Definition at line 206 of file components/service/network_manager/inc/sl_net.h

sl_net_get_credential#

sl_status_t sl_net_get_credential (sl_net_credential_id_t id, sl_net_credential_type_t * type, void * credential, uint32_t * credential_length)

Retrieve a stored network credential.

Parameters
[in]id

Network credential identifier as identified by sl_net_credential_id_t

[out]type

Network credential type as identified by sl_net_credential_type_t

[out]credential

Pointer to location where credential data is stored.

[inout]credential_length

in: Number of bytes available at credential, out: Number of bytes written.

  • Pre-conditions:

Returns

Note

  • Certificates cannot be retrieved using this API.


Definition at line 231 of file components/service/network_manager/inc/sl_net.h

sl_net_delete_credential#

sl_status_t sl_net_delete_credential (sl_net_credential_id_t id, sl_net_credential_type_t type)

Delete a stored network credential.

Parameters
[in]id

Network credential identifier as identified by sl_net_credential_id_t

[out]type

Network credential type as identified by sl_net_credential_type_t

  • Pre-conditions:

Returns


Definition at line 249 of file components/service/network_manager/inc/sl_net.h