nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
modem_key_mgmt.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <nrf_socket.h>

Go to the source code of this file.

Enumerations

enum  modem_key_mgmt_cred_type {
  MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN , MODEM_KEY_MGMT_CRED_TYPE_PUBLIC_CERT , MODEM_KEY_MGMT_CRED_TYPE_PRIVATE_CERT , MODEM_KEY_MGMT_CRED_TYPE_PSK ,
  MODEM_KEY_MGMT_CRED_TYPE_IDENTITY
}
 Credential types. More...
 

Functions

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_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_clear (nrf_sec_tag_t sec_tag)
 Delete all credentials for a given sectag from 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_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.