BSB Developer Docs
Loading...
Searching...
No Matches
ca_storage.h File Reference

Certificate Authority (CA) storage API. More...

#include <mbedtls/x509_crt.h>

Go to the source code of this file.

Macros

#define RECORD_CA_STORAGE   "ca_storage"
 The string key for CaStorage instance access.
 

Typedefs

typedef struct CaStorage CaStorage
 

Functions

const mbedtls_x509_crt * ca_storage_get_cert_chain (const CaStorage *instance)
 Get the parsed CA certificate chain in MbedTLS format.
 

Detailed Description

Certificate Authority (CA) storage API.

On startup, the CA certificate bundle is loaded and converted to the internal MbedTLS representation. After that, it can be reused for all TLS connections, thus reducing the memory and CPU overhead.

Macro Definition Documentation

◆ RECORD_CA_STORAGE

#define RECORD_CA_STORAGE   "ca_storage"

The string key for CaStorage instance access.

Get the instance pointer by calling furi_record_open(RECORD_CA_STORAGE);

Function Documentation

◆ ca_storage_get_cert_chain()

const mbedtls_x509_crt * ca_storage_get_cert_chain ( const CaStorage * instance)

Get the parsed CA certificate chain in MbedTLS format.

The return value is guaranteed to always be valid and non-NULL.

Parameters
[in]instancepointer to the CA Storage instance
Returns
pointer to the head of the CA certificate chain