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
mod api;
pub use api::*;
#[cfg(feature = "quic")]
mod quic;
#[cfg(feature = "quic")]
pub use quic::*;
#[cfg(feature = "internal")]
mod internal;
#[cfg(feature = "internal")]
pub use internal::*;
pub mod s2n_status_code {
pub type Type = libc::c_int;
pub const SUCCESS: Type = 0;
pub const FAILURE: Type = -1;
}
pub mod s2n_tls_version {
pub type Type = libc::c_int;
pub const SSLV2: Type = 20;
pub const SSLV3: Type = 30;
pub const TLS10: Type = 31;
pub const TLS11: Type = 32;
pub const TLS12: Type = 33;
pub const TLS13: Type = 34;
pub const UNKNOWN: Type = 0;
}
#[cfg(test)]
mod tests;