32 lines
650 B
Rust
32 lines
650 B
Rust
#![no_std]
|
|
|
|
extern crate alloc;
|
|
|
|
pub mod tls;
|
|
pub mod tls_packet;
|
|
pub mod parse;
|
|
pub mod buffer;
|
|
pub mod key;
|
|
pub mod session;
|
|
pub mod certificate;
|
|
pub mod fake_rng;
|
|
pub mod oid;
|
|
|
|
// TODO: Implement errors
|
|
// Details: Encapsulate smoltcp & nom errors
|
|
#[derive(Debug, Clone)]
|
|
pub enum Error {
|
|
PropagatedError(smoltcp::Error),
|
|
ParsingError,
|
|
EncryptionError,
|
|
DecryptionError,
|
|
CapacityError,
|
|
SignatureValidationError,
|
|
TimeValidityError,
|
|
CertificateIssuerMismatch,
|
|
CertificateSubjectNotPermitted,
|
|
CertificateSubjectExcluded,
|
|
CertificatePolicyError,
|
|
CertificateVersionError,
|
|
}
|