Skip to content

Commit

Permalink
Progress on MS extension support
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Feb 14, 2024
1 parent c40b7e7 commit 3653e68
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 271 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "MPL-2.0"
[features]
unsafe_release_without_verify = []
hsm-crypto = ["kanidm-hsm-crypto"]
msextensions = ["dep:openssl-kdf", "openssl", "hsm-crypto"]
msextensions = ["dep:openssl-kdf", "openssl", "kanidm-hsm-crypto/msextensions"]
default = ["openssl"]

[package.metadata.docs.rs]
Expand All @@ -27,7 +27,8 @@ serde = { version = "^1.0.136", features = ["derive"] }
serde_json = "^1.0.79"
base64 = "^0.21.5"
base64urlsafedata = "0.1.0"
kanidm-hsm-crypto = { version = "^0.1.4", optional = true }
# kanidm-hsm-crypto = { version = "^0.1.4", optional = true }
kanidm-hsm-crypto = { path = "../hsm-crypto", optional = true }
openssl = { version = "^0.10.38", optional = true }
openssl-kdf = { version = "0.4.2", optional = true }
url = { version = "^2.2.2", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/a256gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct JweA256GCMEncipher {
aes_key: [u8; KEY_LEN],
}

#[cfg(feature = "msextensions")]
#[cfg(all(test, feature = "msextensions"))]
impl JweA256GCMEncipher {
pub(crate) fn raw_key(&self) -> [u8; KEY_LEN] {
self.aes_key
Expand Down
Loading

0 comments on commit 3653e68

Please sign in to comment.