Skip to content

Commit ef9e512

Browse files
authored
verifier/ipcc: use constant from libipcc (#345)
1 parent 6e0ef48 commit ef9e512

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ getrandom = "0.3.4"
3030
hex.version = "0.4"
3131
hubpack = "0.1"
3232
knuffel = "3.2.0"
33-
libipcc = { git = "https://github.com/oxidecomputer/ipcc-rs", rev = "dbaad520e1f5ae32c10db16ce176f9c24de95652" }
33+
libipcc = { git = "https://github.com/oxidecomputer/ipcc-rs", rev = "7cdf2ab9c8d9e9267a8b366aa780c6c26f9a5ecf" }
3434
log = { version = "0.4.28", features = ["std"] }
3535
# pin miette to same version used by knuffel
3636
miette = { version = "5.10", features = ["fancy"] }

verifier/src/ipcc.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ use attest_data::{
77
Attestation, Log, Nonce,
88
};
99
pub use libipcc::IpccError;
10-
use libipcc::IpccHandle;
10+
use libipcc::{IpccHandle, IPCC_MAX_DATA_SIZE};
1111
use x509_cert::{
1212
der::{self, Decode, Encode, Reader},
1313
Certificate, PkiPath,
1414
};
1515

1616
use crate::{Attest, AttestError};
1717

18-
// A slight hack. These are only defined right now in the `ffi` part
19-
// of libipcc which isn't available on non-illumos targets. Probably
20-
// indicates those constants belong elsewhere...
21-
const IPCC_MAX_DATA_SIZE: usize = 4123 - 19;
22-
2318
/// The `AttestIpcc` type communicates with the RoT `Attest` task through the
2419
/// IPCC interface / <https://github.com/oxidecomputer/ipcc-rs>
2520
pub struct AttestIpcc {

0 commit comments

Comments
 (0)