Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove cfg on OpenSSL error variant #202

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crate/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doctest = false

[dependencies]
base64 = { workspace = true }
cosmian_kmip = { path = "../kmip" }
cosmian_kmip = { path = "../kmip", features = ["openssl"] }
http = { workspace = true }
josekit = { workspace = true }
log = "0.4"
Expand Down
4 changes: 4 additions & 0 deletions crate/kmip/src/crypto/wrap/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
mod common;
#[cfg(test)]
mod tests;
#[cfg(feature = "openssl")]
mod unwrap_key;
#[cfg(feature = "openssl")]
mod wrap_key;

const WRAPPING_SECRET_LENGTH: usize = 32;

#[cfg(feature = "openssl")]
pub use unwrap_key::{unwrap_key_block, unwrap_key_bytes};
#[cfg(feature = "openssl")]
pub use wrap_key::{wrap_key_block, wrap_key_bytes};
Loading