hickory_proto/rustls/mod.rs
1// Copyright 2015-2021 Benjamin Fry <benjaminfry@me.com>
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// https://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// https://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! TLS protocol related components for DNS over TLS
9
10pub mod tls_client_stream;
11pub mod tls_server;
12pub mod tls_stream;
13
14pub use self::tls_client_stream::{
15 tls_client_connect, tls_client_connect_with_bind_addr, TlsClientStream,
16};
17pub use self::tls_stream::{tls_connect, tls_connect_with_bind_addr, tls_from_stream, TlsStream};
18
19#[cfg(test)]
20pub(crate) mod tests;