From 7e3d0bc838ff2d700c80ed197e1986e1154a9be6 Mon Sep 17 00:00:00 2001 From: "Tony Arcieri (iqlusion)" Date: Mon, 19 Oct 2020 08:35:49 -0700 Subject: [PATCH] cli: bump `x509-parser` to v0.8 (#181) --- Cargo.lock | 39 ++++----------------------------------- cli/Cargo.toml | 2 +- cli/src/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index beb8ac9..89187e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,12 +38,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" -[[package]] -name = "base64" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" - [[package]] name = "base64" version = "0.12.3" @@ -201,17 +195,6 @@ dependencies = [ "proc-macro-hack", ] -[[package]] -name = "der-parser" -version = "3.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51f64dcdf1cdc550d21d73dc959726c7dbeeab4a01481d08084a7736956464e" -dependencies = [ - "nom", - "num-bigint 0.2.6", - "rusticata-macros", -] - [[package]] name = "der-parser" version = "4.1.0" @@ -1093,20 +1076,6 @@ dependencies = [ "cookie-factory", ] -[[package]] -name = "x509-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dba437c45e779568868b2c46ed1d1c57c98d9f868e47c9bcbfe9114d4cbd97d" -dependencies = [ - "base64 0.11.0", - "der-parser 3.0.4", - "nom", - "num-bigint 0.2.6", - "rusticata-macros", - "time", -] - [[package]] name = "x509-parser" version = "0.8.2" @@ -1117,7 +1086,7 @@ dependencies = [ "chrono", "data-encoding", "der-oid-macro", - "der-parser 4.1.0", + "der-parser", "lazy_static", "nom", "num-bigint 0.3.0", @@ -1137,7 +1106,7 @@ dependencies = [ "sha2 0.8.2", "subtle-encoding", "termcolor", - "x509-parser 0.7.0", + "x509-parser", "yubikey-piv", ] @@ -1147,7 +1116,7 @@ version = "0.1.0" dependencies = [ "chrono", "cookie-factory", - "der-parser 4.1.0", + "der-parser", "des", "elliptic-curve", "env_logger", @@ -1171,7 +1140,7 @@ dependencies = [ "subtle", "subtle-encoding", "x509", - "x509-parser 0.8.2", + "x509-parser", "zeroize", ] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c90a474..91c758b 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -21,5 +21,5 @@ log = "0.4" sha2 = "0.8" subtle-encoding = "0.5" termcolor = "1" -x509-parser = "0.7" +x509-parser = "0.8" yubikey-piv = { version = "0.1", path = ".." } diff --git a/cli/src/lib.rs b/cli/src/lib.rs index a9cc863..58f1d6d 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -59,12 +59,12 @@ pub fn print_cert_info( print_cert_attr( stream, "Not Before", - cert.tbs_certificate.validity.not_before.asctime(), + cert.tbs_certificate.validity.not_before.to_rfc2822(), )?; print_cert_attr( stream, "Not After", - cert.tbs_certificate.validity.not_after.asctime(), + cert.tbs_certificate.validity.not_after.to_rfc2822(), )?; } _ => {