nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ slm_native_tls_store_credential()

int slm_native_tls_store_credential ( sec_tag_t  sec_tag,
uint16_t  type,
const void *  data,
size_t  len 
)

Store credential to Zephyr settings storage.

Parameters
[in]sec_tagsec_tag under which the credential is stored.
[in]typeType of the credential to be stored.
[in]dataPointer to the credential data.
[in]lenLength of the credential data.
Return values
0If succeeded.
-E2BIGif credentials under sec_tag would exceed SLM_NATIVE_TLS_CREDENTIAL_BUFFER_SIZE.
-errnoNegative errno for other failures.