Dependency updates and MSRV 1.46 (#208)
- cargo update - cli: Bump x509-parser to 0.9 - Bump elliptic-curve to 0.8. Also requires bumping p256 and p384. - Bump MSRV to 1.46.0. Required to match the MSRV of elliptic-curve.
This commit is contained in:
+1
-1
@@ -21,5 +21,5 @@ log = "0.4"
|
||||
sha2 = "0.9"
|
||||
subtle-encoding = "0.5"
|
||||
termcolor = "1"
|
||||
x509-parser = "0.8"
|
||||
x509-parser = "0.9"
|
||||
yubikey-piv = { version = "0.1", path = ".." }
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ use std::io::{self, Write};
|
||||
use std::str;
|
||||
use subtle_encoding::hex;
|
||||
use termcolor::{ColorSpec, StandardStreamLock, WriteColor};
|
||||
use x509_parser::parse_x509_der;
|
||||
use x509_parser::parse_x509_certificate;
|
||||
use yubikey_piv::{certificate::Certificate, key::*, YubiKey};
|
||||
|
||||
///Write information about certificate found in slot a la yubico-piv-tool output.
|
||||
@@ -41,7 +41,7 @@ pub fn print_cert_info(
|
||||
let fingerprint = Sha256::digest(&buf);
|
||||
let slot_id: u8 = slot.into();
|
||||
print_cert_attr(stream, "Slot", format!("{:x}", slot_id))?;
|
||||
match parse_x509_der(&buf) {
|
||||
match parse_x509_certificate(&buf) {
|
||||
Ok((_rem, cert)) => {
|
||||
print_cert_attr(
|
||||
stream,
|
||||
|
||||
Reference in New Issue
Block a user