Skip to content

Commit 53c988b

Browse files
authored
feat: Remove x509_certificate (#1547)
* test: add tests for uncovered code TSA request data is generated using OpenSSL
1 parent 17ad81b commit 53c988b

File tree

10 files changed

+1421
-85
lines changed

10 files changed

+1421
-85
lines changed

Cargo.lock

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ pdf = ["dep:lopdf"]
4040
rust_native_crypto = [
4141
"dep:const-oid",
4242
"dep:ecdsa",
43-
"dep:der",
4443
"dep:num-bigint-dig",
4544
"dep:p256",
4645
"dep:p384",
@@ -120,8 +119,8 @@ config = { version = "0.14.0", default-features = false, features = [
120119
const-hex = "1.14"
121120
const-oid = { version = "0.9.6", optional = true }
122121
coset = "0.4.0"
122+
der = { version = "0.7.9", features = ["alloc"] }
123123
extfmt = "0.1.1"
124-
der = { version = "0.7.9", optional = true }
125124
ecdsa = { version = "0.16.9", features = ["digest", "sha2"], optional = true }
126125
ed25519-dalek = { version = "2.1.1", features = [
127126
"alloc",
@@ -185,7 +184,6 @@ thiserror = "2.0.17"
185184
url = "2.5.3"
186185
uuid = { version = "1.18.0", features = ["serde", "v4"] }
187186
web-time = "1.1"
188-
x509-certificate = "0.24.0"
189187
x509-parser = "0.16.0"
190188
zeroize = { version = "1.8", features = ["zeroize_derive"] }
191189
zip = { version = "6.0.0", default-features = false }
@@ -228,7 +226,6 @@ wstd = "0.5.4"
228226
# This list matches the `rust_native_crypto` feature since they are not optional on WASM.
229227
[target.'cfg(target_arch = "wasm32")'.dependencies]
230228
const-oid = "0.9.6"
231-
der = "0.7.9"
232229
ecdsa = { version = "0.16.9", features = ["digest", "sha2"] }
233230
num-bigint-dig = "0.8.4"
234231
p256 = "0.13.2"
@@ -268,6 +265,7 @@ features = ["now"]
268265

269266
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
270267
chrono = { version = "0.4.39", default-features = false, features = [
268+
"clock",
271269
"serde",
272270
"wasmbind",
273271
] }

sdk/src/assertions/assertion_metadata.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ impl AssertionMetadata {
5353
pub const LABEL: &'static str = labels::ASSERTION_METADATA;
5454

5555
pub fn new() -> Self {
56+
// Get current time (platform-specific)
57+
let date_time = Utc::now().to_rfc3339_opts(SecondsFormat::Millis, true);
58+
5659
Self {
5760
reviews: None,
58-
date_time: Some(DateT(
59-
Utc::now().to_rfc3339_opts(SecondsFormat::Millis, true),
60-
)),
61+
date_time: Some(DateT(date_time)),
6162
reference: None,
6263
data_source: None,
6364
localizations: None,

0 commit comments

Comments
 (0)