diff --git a/boring-sys/Cargo.toml b/boring-sys/Cargo.toml index 72845c85..675a02f3 100644 --- a/boring-sys/Cargo.toml +++ b/boring-sys/Cargo.toml @@ -43,7 +43,7 @@ include = [ ] [package.metadata.docs.rs] -features = ["rpk", "underscore-wildcards"] +features = ["rpk", "underscore-wildcards", "mlkem"] rustdoc-args = ["--cfg", "docsrs"] [features] @@ -58,6 +58,9 @@ fips = [] # Enables Raw public key API (https://datatracker.ietf.org/doc/html/rfc7250) rpk = [] +# Require mlkem.h +mlkem = [] + # Applies a patch (`patches/underscore-wildcards.patch`) to enable # `ffi::X509_CHECK_FLAG_UNDERSCORE_WILDCARDS`. This feature is necessary in # order to compile the bindings for the default branch of boringSSL diff --git a/boring-sys/src/lib.rs b/boring-sys/src/lib.rs index 57ceffc7..e29b5125 100644 --- a/boring-sys/src/lib.rs +++ b/boring-sys/src/lib.rs @@ -30,6 +30,8 @@ pub use generated::{ssl_compliance_policy_t, ERR_add_error_data, SSL_set1_groups pub use generated::{BIO_new, OPENSSL_free, SSL_ERROR_NONE}; // if these are missing, your include path is incorrect #[cfg(feature = "fips")] pub use generated::{FIPS_mode, SSL_CTX_set_compliance_policy}; // your include path is incorrect or has a version of boringssl without FIPS support +#[cfg(feature = "mlkem")] +pub use generated::{MLKEM768_encap, MLKEM768_private_key_from_seed}; // your include path is incorrect or has a version of boringssl without mlkem support #[cfg(feature = "rpk")] pub use generated::{SSL_CREDENTIAL_new_raw_public_key, SSL_CREDENTIAL_set1_spki}; // your include path is incorrect or has a version of boringssl without rpk support