s2n_tls_sys/
lib.rs

1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4#[rustfmt::skip]
5mod api;
6
7pub use api::*;
8
9mod features;
10
11#[allow(unused_imports)]
12pub use features::*;
13
14// Additional defines that don't get imported with bindgen
15
16pub mod s2n_status_code {
17    pub type Type = libc::c_int;
18    pub const SUCCESS: Type = 0;
19    pub const FAILURE: Type = -1;
20}
21
22pub mod s2n_tls_version {
23    pub type Type = libc::c_int;
24    pub const SSLV2: Type = 20;
25    pub const SSLV3: Type = 30;
26    pub const TLS10: Type = 31;
27    pub const TLS11: Type = 32;
28    pub const TLS12: Type = 33;
29    pub const TLS13: Type = 34;
30    pub const UNKNOWN: Type = 0;
31}
32
33#[cfg(test)]
34#[rustfmt::skip]
35mod tests;