bongonet_boringssl/
lib.rs

1// Copyright 2024 KhulnaSoft, Ltd.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! The BoringSSL API compatibility layer.
16//!
17//! This crate aims at making [boring] APIs exchangeable with [openssl-rs](https://docs.rs/openssl/latest/openssl/).
18//! In other words, this crate and [`bongonet-openssl`](https://docs.rs/bongonet-openssl) expose identical rust APIs.
19
20#![warn(clippy::all)]
21
22use boring as ssl_lib;
23pub use boring_sys as ssl_sys;
24pub mod boring_tokio;
25pub use boring_tokio as tokio_ssl;
26pub mod ext;
27
28// export commonly used libs
29pub use ssl_lib::error;
30pub use ssl_lib::hash;
31pub use ssl_lib::nid;
32pub use ssl_lib::pkey;
33pub use ssl_lib::ssl;
34pub use ssl_lib::x509;