truststore.h
Provides API for initializing and checking the CA root truststore. \par Reference: RFC 5280.
- Author
Anthony Cagliano
Note
Custom PKI architecture engineered for constrained runtime and storage environments.
Warning
The topmost certificate in a chain is only checked against the truststore if its issuer is found by subject-name lookup; if absent, the chain is accepted without root anchoring (see tls_truststore_lookup_by_subject). Adjacent links below the root are verified via real RSA signature checks.
Enums
Functions
-
tls_truststore_status_t tls_truststore_init(void)
-
bool tls_truststore_lookup(const uint8_t *ski, struct tls_truststore_entry **result)
-
struct tls_truststore_state
- #include <truststore.h>
-
struct tls_truststore_header
- #include <truststore.h>
-
struct tls_truststore_entry
- #include <truststore.h>
Public Members
-
uint32_t len
-
uint8_t subject[TLS_TRUSTSTORE_SUBJECT_LEN]
-
uint8_t ski[TLS_TRUSTSTORE_SKI_LEN]
-
uint32_t expiry_start
-
uint32_t expiry_end
-
uint8_t alg_id
-
uint8_t key[]
-
uint32_t len