1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Trust store management for certificate chain validation.
//!
//! This module provides [`TrustStore`] for holding trusted CA certificates
//! (trust anchors) and [`TrustStoreSet`] for managing separate stores for
//! different purposes: signature validation, timestamp authority validation,
//! and SVT issuer validation.
//!
//! # Loading trust anchors
//!
//! Trust anchors can be loaded from:
//! - Individual PEM files (one or more certificates per file)
//! - Directories of PEM files
//! - DER-encoded bytes
//! - `x509_cert::Certificate` objects directly
//!
//! # Example
//!
//! ```no_run
//! use tsp_ltv::trust::{TrustStore, TrustStoreSet};
//!
//! # fn example() -> Result<(), tsp_ltv::error::TrustError> {
//! // Load a trust store from a PEM file
//! let sig_store = TrustStore::from_pem_file("ca-certs.pem")?;
//!
//! // Or from a directory of PEM files
//! let tsa_store = TrustStore::from_pem_directory("/etc/ssl/certs")?;
//!
//! // Combine into a typed set
//! let stores = TrustStoreSet::new()
//! .with_sig_store(sig_store)
//! .with_tsa_store(tsa_store);
//! # Ok(())
//! # }
//! ```
pub use ;
pub use TrustStore;
pub use ;