From 1a2ee55cb225ad677c4f0e82c4362da0f58c3c90 Mon Sep 17 00:00:00 2001 From: Dmitry S Date: Tue, 16 May 2023 11:32:32 +0200 Subject: [PATCH] upgrade 'der' to 0.7.5 Signed-off-by: Dmitry S --- Cargo.toml | 2 +- examples/rekor/create_log_entry/main.rs | 2 +- src/crypto/certificate.rs | 2 +- src/crypto/verification_key.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8f592f44da..816d600922 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ cached = { version = "0.42.0", optional = true } cfg-if = "1.0.0" chrono = { version = "0.4.23", feature = "clock" } const-oid = "0.9.1" -der = "0.6.1" +der = "0.7.5" digest = { version = "0.10.3", default-features = false } ecdsa = { version = "0.15", features = [ "pkcs8", "digest", "der" ] } ed25519 = { version = "=2.1", features = [ "alloc" ] } diff --git a/examples/rekor/create_log_entry/main.rs b/examples/rekor/create_log_entry/main.rs index e14f210417..1753e188a4 100644 --- a/examples/rekor/create_log_entry/main.rs +++ b/examples/rekor/create_log_entry/main.rs @@ -82,7 +82,7 @@ async fn main() { .arg(Arg::new("key_format") .long("key_format") .value_name("KEY_FORMAT") - .help("Accepted formats are : pgp / x509 / minsign / ssh / tuf")) + .help("Accepted formats are : pgp / x509 / minsign / ssh / tuf")) .arg(Arg::new("signature") .long("signature") .value_name("SIGNATURE") diff --git a/src/crypto/certificate.rs b/src/crypto/certificate.rs index e3f94cbe03..6d7da38702 100644 --- a/src/crypto/certificate.rs +++ b/src/crypto/certificate.rs @@ -126,7 +126,7 @@ mod tests { use crate::crypto::tests::*; use chrono::{Duration, Utc}; - use der::Decode; + use x509_cert::der::Decode; #[test] fn verify_cert_key_usages_success() -> anyhow::Result<()> { diff --git a/src/crypto/verification_key.rs b/src/crypto/verification_key.rs index 02c85d3379..e84c7ed127 100644 --- a/src/crypto/verification_key.rs +++ b/src/crypto/verification_key.rs @@ -329,7 +329,7 @@ impl CosignVerificationKey { #[cfg(test)] mod tests { - use der::Decode; + use x509_cert::der::Decode; use x509_cert::Certificate; use super::*;