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

◆ modem_key_mgmt_exists()

int modem_key_mgmt_exists ( nrf_sec_tag_t  sec_tag,
enum modem_key_mgmt_cred_type  cred_type,
bool *  exists 
)

#include <include/modem/modem_key_mgmt.h>

Check if a credential exists in persistent storage.

Parameters
[in]sec_tagThe security tag to search for.
[in]cred_typeThe credential type.
[out]existsWhether the credential exists. Only valid if the operation is successful.
Return values
0On success.
-ENOBUFSInternal buffer is too small.
-EACCESAccess to credential not allowed.