nRF Connect SDK API 0.1.0
|
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.
[in] | sec_tag | sec_tag under which the credential is stored. |
[in] | type | Type of the credential to be stored. |
[in] | data | Pointer to the credential data. |
[in] | len | Length of the credential data. |
0 | If succeeded. |
-E2BIG | if credentials under sec_tag would exceed SLM_NATIVE_TLS_CREDENTIAL_BUFFER_SIZE. |
-errno | Negative errno for other failures. |