Crates.io | boring-sys-imp |
lib.rs | boring-sys-imp |
version | 2.1.0 |
source | src |
created_at | 2023-10-11 11:22:03.749191 |
updated_at | 2024-03-12 11:07:24.192415 |
description | FFI bindings to BoringSSL |
homepage | |
repository | https://github.com/cloudflare/boring |
max_upload_size | |
id | 1000108 |
size | 20,348,468 |
BoringSSL bindings for the Rust programming language and TLS adapters for tokio and hyper built on top of it.
By default, the crate statically links with the latest BoringSSL master branch.
While this crate can build BoringSSL on its own, you may want to provide pre-built binaries instead.
To do so, specify the environment variable BORING_BSSL_PATH
with the path to the binaries.
You can also provide specific headers by setting BORING_BSSL_INCLUDE_PATH
.
Notes: The crate will look for headers in the $BORING_BSSL_INCLUDE_PATH/openssl/
folder, make sure to place your headers there.
Warning: When providing a different version of BoringSSL make sure to use a compatible one, the crate relies on the presence of certain functions.
Only BoringCrypto module version ae223d6138807a13006342edfeef32e813246b39, as
certified with certificate
3678
is supported by this crate. Support is enabled by this crate's fips
feature.
boring-sys
comes with a test that FIPS is enabled/disabled depending on the feature flag. You can run it as follows:
$ cargo test --features fips fips::is_enabled
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed under the terms of both the Apache License, Version 2.0 and the MIT license without any additional terms or conditions.
The project is based on a fork of rust-openssl.