![]() |
nRF Connect SDK API 3.3.99
|
| int modem_key_mgmt_cmp | ( | nrf_sec_tag_t | sec_tag, |
| enum modem_key_mgmt_cred_type | cred_type, | ||
| const void * | buf, | ||
| size_t | len ) |
#include <include/modem/modem_key_mgmt.h>
Compare a credential with a credential in persistent storage.
| [in] | sec_tag | The security tag of the credential. |
| [in] | cred_type | The credential type. |
| [in] | buf | Buffer to compare the credential to. |
| [in] | len | Length of the buffer. |
| 0 | If the credentials match. |
| 1 | If the credentials do not match. |
| -ENOBUFS | Internal buffer is too small. |
| -ENOENT | No credential associated with the given sec_tag and cred_type. |
| -EACCES | Access to credential not allowed. |