On revocation, display only the key type

This commit is contained in:
Rodolphe Bréard 2023-04-16 00:14:21 +02:00
parent a83a98cf8d
commit 875a84811e

View file

@ -44,6 +44,7 @@ async fn publish_expired_keys(db: &SqlitePool, file_path: &Path) -> Result<Durat
.await?;
let mut buff = BufWriter::new(rev_file);
for (selector, sdid, algorithm, private_key) in res {
let algorithm = algorithm.parse::<Algorithm>().unwrap().key_type();
buff.write_all(algorithm.as_bytes()).await?;
buff.write_all(b" ").await?;
buff.write_all(private_key.as_bytes()).await?;