2020-10-04 22:22:29 +08:00
|
|
|
#![no_std]
|
|
|
|
|
2020-10-11 23:41:02 +08:00
|
|
|
#[macro_use]
|
|
|
|
extern crate alloc;
|
|
|
|
|
2020-10-04 22:22:29 +08:00
|
|
|
pub mod tls;
|
2020-10-11 13:46:24 +08:00
|
|
|
pub mod tls_packet;
|
|
|
|
pub mod parse;
|
2020-10-15 22:40:36 +08:00
|
|
|
pub mod buffer;
|
2020-10-16 17:38:29 +08:00
|
|
|
pub mod key;
|
2020-10-17 20:10:18 +08:00
|
|
|
pub mod session;
|
2020-10-11 13:46:24 +08:00
|
|
|
|
2020-10-11 23:41:02 +08:00
|
|
|
// TODO: Implement errors
|
|
|
|
// Details: Encapsulate smoltcp & nom errors
|
2020-10-11 13:46:24 +08:00
|
|
|
pub enum Error {
|
|
|
|
PropagatedError(smoltcp::Error),
|
2020-10-15 17:29:42 +08:00
|
|
|
ParsingError,
|
|
|
|
EncryptionError,
|
2020-10-18 20:02:40 +08:00
|
|
|
DecryptionError,
|
2020-10-15 17:29:42 +08:00
|
|
|
CapacityError,
|
2020-10-11 13:46:24 +08:00
|
|
|
}
|