7#ifndef MODEM_KEY_MGMT_H__
8#define MODEM_KEY_MGMT_H__
13#include <nrf_socket.h>
60 const void *buf,
size_t len);
117 void *buf,
size_t *len);
136 const void *buf,
size_t len);
int modem_key_mgmt_write(nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, const void *buf, size_t len)
Write or update a credential in persistent storage.
int modem_key_mgmt_read(nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, void *buf, size_t *len)
Read a credential from persistent storage.
int modem_key_mgmt_clear(nrf_sec_tag_t sec_tag)
Delete all credentials for a given sectag from persistent storage.
int modem_key_mgmt_delete(nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type)
Delete a credential from persistent storage.
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)
Compare a credential with a credential in persistent storage.
int modem_key_mgmt_exists(nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, bool *exists)
Check if a credential exists in persistent storage.
modem_key_mgmt_cred_type
Credential types.
Definition modem_key_mgmt.h:27
@ MODEM_KEY_MGMT_CRED_TYPE_PRIVATE_CERT
Definition modem_key_mgmt.h:30
@ MODEM_KEY_MGMT_CRED_TYPE_IDENTITY
Definition modem_key_mgmt.h:32
@ MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN
Definition modem_key_mgmt.h:28
@ MODEM_KEY_MGMT_CRED_TYPE_PSK
Definition modem_key_mgmt.h:31
@ MODEM_KEY_MGMT_CRED_TYPE_PUBLIC_CERT
Definition modem_key_mgmt.h:29