Skip to content

Commit

Permalink
Fix CI build failures
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed Sep 3, 2024
1 parent 8cb7138 commit 20bd1a0
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
libdhash-dev \
libkrb5-dev \
libpcre2-dev \
libclang-13-dev \
libclang-dev \
autoconf \
gettext
gettext \
openssl \
libsqlite3-dev
- name: "Fetch submodules"
run: git submodule init && git submodule update
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
libdhash-dev \
libkrb5-dev \
libpcre2-dev \
libclang-13-dev \
libclang-dev \
autoconf \
gettext
gettext \
openssl \
libsqlite3-dev
- name: "Fetch submodules"
run: git submodule init && git submodule update
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
libdhash-dev \
libkrb5-dev \
libpcre2-dev \
libclang-13-dev \
libclang-dev \
autoconf \
gettext
gettext \
openssl \
libsqlite3-dev
- name: "Fetch submodules"
run: git submodule init && git submodule update
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
"src/glue",
"src/kanidm/libs/sketching",
"src/proto",
"src/kanidm/libs/crypto",
"src/crypto",
"src/kanidm/libs/users",
"src/idmap",
]
Expand Down Expand Up @@ -75,7 +75,7 @@ tracing-forest = "^0.1.6"
rusqlite = "^0.31.0"
hashbrown = { version = "0.14.0", features = ["serde", "inline-more", "ahash"] }
lru = "^0.12.3"
kanidm_lib_crypto = { path = "./src/kanidm/libs/crypto", version = "0.5.0" }
kanidm_lib_crypto = { path = "./src/crypto", version = "0.5.0" }
kanidm_utils_users = { path = "./src/kanidm/libs/users" }
walkdir = "2"
csv = "1.2.2"
Expand Down
3 changes: 3 additions & 0 deletions src/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ license.workspace = true
homepage.workspace = true
repository.workspace = true

[features]
tpm = ["kanidm-hsm-crypto/tpm"]

[lib]
name = "himmelblau_unix_common"
path = "src/lib.rs"
Expand Down
40 changes: 40 additions & 0 deletions src/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[package]
name = "kanidm_lib_crypto"
version.workspace = true
authors.workspace = true
rust-version.workspace = true
edition.workspace = true
description = "Kanidm cryptographic functionality"
license.workspace = true
homepage.workspace = true
repository.workspace = true

[features]
tpm = ["kanidm-hsm-crypto/tpm"]

[lib]
test = true
doctest = false

[dependencies]
argon2 = { workspace = true }
base64 = { workspace = true }
base64urlsafedata = { workspace = true }
hex = { workspace = true }
kanidm_proto = { workspace = true }
kanidm-hsm-crypto = { workspace = true }

# We need to explicitly ask for openssl-sys so that we get the version propagated
# into the build.rs for legacy feature checks.
openssl-sys = { workspace = true }
openssl = { workspace = true }
rand = { workspace = true }
serde = { workspace = true, features = ["derive"] }
tracing = { workspace = true }
uuid = { workspace = true }

[dev-dependencies]
sketching = { workspace = true }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(openssl3)'] }
1 change: 1 addition & 0 deletions src/crypto/src
1 change: 1 addition & 0 deletions src/daemon/src/tasks_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#![deny(clippy::await_holding_lock)]
#![deny(clippy::needless_pass_by_value)]
#![deny(clippy::trivially_copy_pass_by_ref)]
#![allow(unexpected_cfgs)]

use std::ffi::CString;
use std::os::unix::ffi::OsStrExt;
Expand Down

0 comments on commit 20bd1a0

Please sign in to comment.