pingora_openssl/lib.rs
1// Copyright 2024 Cloudflare, Inc.
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 OpenSSL API compatibility layer.
16//!
17//! This crate aims at making [openssl] APIs interchangeable with [boring](https://docs.rs/boring/latest/boring/).
18//! In other words, this crate and [`pingora-boringssl`](https://docs.rs/pingora-boringssl) expose identical rust APIs.
19
20#![warn(clippy::all)]
21
22use openssl as ssl_lib;
23pub use openssl_sys as ssl_sys;
24pub use tokio_openssl as tokio_ssl;
25pub mod ext;
26
27// export commonly used libs
28pub use ssl_lib::dh;
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;