Interface and Protocol Store#
Functions#
Set the TLS store configuration specific to Interface/Protocol.
Get the TLS store configuration specific to Interface/Protocol.
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
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_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
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_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
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_t | N/A | cert_identifier |
sl_wifi_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.