s2n_tls/
lib.rs

1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4extern crate alloc;
5
6// Ensure memory is correctly managed in tests
7// tests invoked using the checkers::test macro have additional
8// memory sanity checks that occur
9#[cfg(test)]
10#[global_allocator]
11static ALLOCATOR: checkers::Allocator = checkers::Allocator::system();
12
13#[macro_use]
14pub mod error;
15
16pub mod callbacks;
17pub mod cert_chain;
18pub mod client_hello;
19pub mod config;
20pub mod connection;
21pub mod enums;
22#[cfg(feature = "unstable-fingerprint")]
23pub mod fingerprint;
24pub mod init;
25pub mod pool;
26pub mod psk;
27#[cfg(feature = "unstable-renegotiate")]
28pub mod renegotiate;
29pub mod security;
30
31pub use s2n_tls_sys as ffi;
32
33#[cfg(any(feature = "unstable-testing", test))]
34pub mod testing;