Debian Codegraph @

crt/s2n/bindings/rust/extended/s2n-tls-sys/src/lib.rs

raw symbols SCIP
1 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 // SPDX-License-Identifier: Apache-2.0
3
4 #[rustfmt::skip]
5 mod api;
6
7 pub use api::*;
8
9 mod features;
10
11 #[allow(unused_imports)]
12 pub use features::*;
13
14 // Additional defines that don't get imported with bindgen
15
16 pub 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
22 pub 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]
35 mod tests;