nRF Connect SDK API 0.1.0
|
int modem_key_mgmt_read | ( | nrf_sec_tag_t | sec_tag, |
enum modem_key_mgmt_cred_type | cred_type, | ||
void * | buf, | ||
size_t * | len | ||
) |
#include <include/modem/modem_key_mgmt.h>
Read a credential from persistent storage.
[in] | sec_tag | The security tag of the credential. |
[in] | cred_type | The credential type. |
[out] | buf | Buffer to read the credential into. |
[in,out] | len | Length of the buffer, length of the credential. |
0 | On success. |
-ENOBUFS | Internal buffer is too small. |
-ENOMEM | Credential does not fit in buf . |
-ENOENT | No credential associated with the given sec_tag and cred_type . |
-EACCES | Access to credential not allowed. |