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;
17#[cfg(feature = "unstable-cert_authorities")]
18pub mod cert_authorities;
19pub mod cert_chain;
20pub mod client_hello;
21pub mod config;
22pub mod connection;
23pub mod enums;
24#[cfg(feature = "unstable-fingerprint")]
25pub mod fingerprint;
26pub mod init;
27pub mod pool;
28pub mod psk;
29#[cfg(feature = "unstable-renegotiate")]
30pub mod renegotiate;
31pub mod security;
32
33pub use s2n_tls_sys as ffi;
34
35#[cfg(any(feature = "unstable-testing", test))]
36pub mod testing;