Skip to content
Open
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
118 changes: 108 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
members = [
"attest-data",
"attest-mock",
"attest-time",
"barcode",
"dice-cert-tmpl",
"dice-mfg",
Expand All @@ -17,8 +18,10 @@ anyhow = { version = "1.0.100", default-features = false }
attest.path = "attest"
chrono = { version = "0.4.42", default-features=false }
clap = { version = "4.5.51", features = ["derive", "env"] }
clap-verbosity = "2.1.0"
const-oid = { version = "0.9.6", default-features = false }
corncobs = "0.1"
ctrlc = "3.5.1"
der = { version = "0.7.10", default-features = false }
ecdsa = { version = "0.16", default-features = false }
ed25519-dalek = { version = "2.1", default-features = false }
Expand Down
16 changes: 16 additions & 0 deletions attest-time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "attest-time"
version = "0.1.0"
edition = "2024"

[dependencies]
anyhow = { workspace = true, features = ["std"] }
clap.workspace = true
clap-verbosity.workspace = true
ctrlc.workspace = true
dice-verifier = { path = "../verifier" }
env_logger.workspace = true
log.workspace = true

[features]
ipcc = ["dice-verifier/ipcc"]
5 changes: 5 additions & 0 deletions attest-time/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To get meaningful results this tool should be run through the IPCC interface as
this is the communication path that will be used on a deployed system. We do
not however enable IPCC by default due to the side effects caused by cargo
unifying features across the workspace. IPCC support must be explicitly enabled
for `attest-time` when building it: `--features ipcc`.
16 changes: 16 additions & 0 deletions attest-time/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

/// This path is where Oxide specific libraries live on helios systems.
/// This is needed for linking with libipcc
#[cfg(all(feature = "ipcc", target_os = "illumos"))]
static OXIDE_PLATFORM: &str = "/usr/platform/oxide/lib/amd64/";

fn main() {
#[cfg(all(feature = "ipcc", target_os = "illumos"))]
{
println!("cargo:rustc-link-arg=-Wl,-R{}", OXIDE_PLATFORM);
println!("cargo:rustc-link-search={}", OXIDE_PLATFORM);
}
}
Loading
Loading