Skip to content
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
102 changes: 12 additions & 90 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ aws-lc-rs = "1.15.2"
base64 = "0.22.1"
chrono = { version = "0.4.42", features = ["alloc"], default-features = false }
clap = { version = "4.5", features = ["derive"] }
clubcard-crlite = "0.4"
clubcard-crlite = { version = "0.5.1", default-features = false, features = ["bincode"] }
criterion = "0.8"
csv = "1.4"
directories = "6"
Expand Down
4 changes: 2 additions & 2 deletions rustls-upki/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustls-upki"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
license.workspace = true
edition.workspace = true
description = "A rustls verifier with upki revocation integration"
Expand All @@ -11,7 +11,7 @@ readme = "README.md"
[dependencies]
rustls = { workspace = true, features = ["std", "tls12"] }
rustls-webpki.workspace = true
upki = { version = "=1.0.0-beta.1", path = "../upki" }
upki = { version = "=1.0.0-beta.2", path = "../upki" }

[dev-dependencies]
rustls = { workspace = true, features = ["aws-lc-rs"] }
Expand Down
8 changes: 4 additions & 4 deletions rustls-upki/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ impl ServerVerifier {
return self.policy.cert_has_no_scts.as_result();
}

let input = RevocationCheckInput {
cert_serial: CertSerial(
let input = RevocationCheckInput::new(
CertSerial(
verified_path
.end_entity()
.serial()
.to_vec(),
),
issuer_spki_hash: IssuerSpkiHash(issuer_spki_hash),
IssuerSpkiHash(issuer_spki_hash),
sct_timestamps,
};
);

match Index::from_cache(&self.config).and_then(|mut index| index.check(&input)) {
Ok(rs) => Ok(rs),
Expand Down
4 changes: 2 additions & 2 deletions upki-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "upki-cli"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
rust-version.workspace = true
edition.workspace = true
repository.workspace = true
Expand All @@ -12,7 +12,7 @@ description = "Platform-independent browser-grade certificate infrastructure"
clap.workspace = true
eyre.workspace = true
rustls-pki-types.workspace = true
upki = { version = "=1.0.0-beta.1", path = "../upki", features = ["fetch"] }
upki = { version = "=1.0.0-beta.2", path = "../upki", features = ["fetch"] }
tokio.workspace = true
toml.workspace = true
tracing.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion upki-cli/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn version() {
success: true
exit_code: 0
----- stdout -----
upki 1.0.0-beta.1
upki 1.0.0-beta.2

----- stderr -----
");
Expand Down
4 changes: 2 additions & 2 deletions upki-openssl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "upki-openssl"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
license.workspace = true
rust-version.workspace = true
edition.workspace = true
Expand All @@ -9,7 +9,7 @@ repository.workspace = true
[dependencies]
openssl-sys = { workspace = true }
rustls-pki-types.workspace = true
upki = { version = "=1.0.0-beta.1", path = "../upki", features = ["capi"] }
upki = { version = "=1.0.0-beta.2", path = "../upki", features = ["capi"] }

[dev-dependencies]
cbindgen.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion upki/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "upki"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
rust-version.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
10 changes: 5 additions & 5 deletions upki/src/revocation/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ mod tests {
}

fn test_input() -> RevocationCheckInput {
RevocationCheckInput {
cert_serial: CertSerial(vec![1, 2, 3]),
issuer_spki_hash: IssuerSpkiHash([0xaa; 32]),
sct_timestamps: vec![CtTimestamp {
RevocationCheckInput::new(
CertSerial(vec![1, 2, 3]),
IssuerSpkiHash([0xaa; 32]),
vec![CtTimestamp {
log_id: [0xbb; 32],
timestamp: 1000,
}],
}
)
}

#[expect(clippy::type_complexity)]
Expand Down
Loading
Loading