Interface and Protocol Store#

Functions#

sl_status_t
sl_tls_set_ca_store(sl_net_interface_t interface, sl_net_application_protocol_t protocol, const sl_tls_store_configuration_t configuration)

Set the TLS store configuration specific to Interface/Protocol.

sl_status_t
sl_tls_get_ca_store(sl_net_interface_t interface, sl_net_application_protocol_t protocol, sl_tls_store_configuration_t *configuration)

Get the TLS store configuration specific to Interface/Protocol.

sl_status_t
sl_tls_clear_ca_store(sl_net_interface_t interface, sl_net_application_protocol_t protocol, sl_cert_identifier_t cert_identifier)

Clear the TLS store configuration specific to Interface/Protocol.

Function Documentation#

sl_tls_set_ca_store#

sl_status_t sl_tls_set_ca_store (sl_net_interface_t interface, sl_net_application_protocol_t protocol, const sl_tls_store_configuration_t configuration)

Set the TLS store configuration specific to Interface/Protocol.

Parameters
TypeDirectionArgument NameDescription
sl_net_interface_t[in]interface

SL-NET interface as identified by sl_net_interface_t.

sl_net_application_protocol_t[in]protocol

Application protocol as identified by sl_net_application_protocol_t.

const sl_tls_store_configuration_t[in]configuration

sl_tls_store_configuration_t object that contains TLS certificate configuration.

  • sl_wifi_init should be called before this API.

Returns


sl_tls_get_ca_store#

sl_status_t sl_tls_get_ca_store (sl_net_interface_t interface, sl_net_application_protocol_t protocol, sl_tls_store_configuration_t * configuration)

Get the TLS store configuration specific to Interface/Protocol.

Parameters
TypeDirectionArgument NameDescription
sl_net_interface_t[in]interface

SL-NET interface as identified by sl_net_interface_t.

sl_net_application_protocol_t[in]protocol

Application protocol as identified by sl_net_application_protocol_t.

sl_tls_store_configuration_t *[in]configuration

Pointer to sl_tls_store_configuration_t object that can store TLS certificate configuration.

  • sl_wifi_init should be called before this API.

Returns


sl_tls_clear_ca_store#

sl_status_t sl_tls_clear_ca_store (sl_net_interface_t interface, sl_net_application_protocol_t protocol, sl_cert_identifier_t cert_identifier)

Clear the TLS store configuration specific to Interface/Protocol.

Parameters
TypeDirectionArgument NameDescription
sl_net_interface_t[in]interface

SL-NET interface as identified by sl_net_interface_t.

sl_net_application_protocol_t[in]protocol

Application protocol as identified by sl_net_application_protocol_t.

sl_cert_identifier_tN/Acert_identifier
  • sl_wifi_init should be called before this API.

Returns