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

◆ modem_key_mgmt_delete()

int modem_key_mgmt_delete ( nrf_sec_tag_t  sec_tag,
enum modem_key_mgmt_cred_type  cred_type 
)

#include <include/modem/modem_key_mgmt.h>

Delete a credential from persistent storage.

Note
If used when the LTE link is active, the function will return an error and the key will not be written.
Parameters
[in]sec_tagThe security tag of the credential.
[in]cred_typeThe credential type.
Return values
0On success.
-ENOBUFSInternal buffer is too small.
-ENOENTNo credential associated with the given sec_tag and cred_type.
-EACCESAccess to credential not allowed.
-EPERMNot permitted when the LTE link is active.
-ECANCELEDCanceled because voltage is low (power off warning).