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
[in]interface

SL-NET interface as identified by sl_net_interface_t.

[in]protocol

Application protocol as identified by sl_net_application_protocol_t.

[in]configuration

sl_tls_store_configuration_t object that contains TLS certificate configuration.

  • sl_wifi_init should be called before this API.

Returns


Definition at line 174 of file components/sl_tls/inc/sl_tls.h

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
[in]interface

SL-NET interface as identified by sl_net_interface_t.

[in]protocol

Application protocol as identified by sl_net_application_protocol_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


Definition at line 192 of file components/sl_tls/inc/sl_tls.h

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
[in]interface

SL-NET interface as identified by sl_net_interface_t.

[in]protocol

Application protocol as identified by sl_net_application_protocol_t.

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

Returns


Definition at line 208 of file components/sl_tls/inc/sl_tls.h