Switch from subtle-encoding to base16ct (#443)

This commit is contained in:
Tony Arcieri (iqlusion)
2022-11-14 15:26:07 -07:00
committed by GitHub
parent 5c4259023f
commit 0a2e798894
6 changed files with 25 additions and 31 deletions
+1 -1
View File
@@ -17,10 +17,10 @@ rust-version = "1.56"
[dependencies]
clap = { version = "4", features = ["derive"] }
env_logger = "0.9"
hex = { package = "base16ct", version = "0.1", features = ["alloc"] }
log = "0.4"
once_cell = "1"
sha2 = "0.10"
subtle-encoding = "0.5"
termcolor = "1"
x509-parser = "0.14"
yubikey = { version = "0.6", path = ".." }
+1 -2
View File
@@ -8,7 +8,6 @@ use std::{
str,
sync::Mutex,
};
use subtle_encoding::hex;
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, StandardStreamLock, WriteColor};
use x509_parser::parse_x509_certificate;
use yubikey::{certificate::Certificate, piv::*, YubiKey};
@@ -200,7 +199,7 @@ pub fn print_cert_info(
print_cert_attr(
stream,
"Fingerprint",
str::from_utf8(hex::encode(fingerprint).as_slice()).unwrap(),
&hex::upper::encode_string(&fingerprint),
)?;
print_cert_attr(
stream,