summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2018-05-17 10:10:58 +0200
committerNeal H. Walfield <neal@pep.foundation>2018-05-17 10:10:58 +0200
commitcfa5cf77bd0d81a055d816fb82fb2f4406db4623 (patch)
tree54e80722da9d394179bb9c94d8a6266c07d691d4 /tool
parent9fdffd5438250d1dff11ff15e4de202171371be2 (diff)
openpgp: Rename HashAlgo to HashAlgorithm.
- Make the naming consistent.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/sqv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/sqv.rs b/tool/src/sqv.rs
index e949618a..e93f35b8 100644
--- a/tool/src/sqv.rs
+++ b/tool/src/sqv.rs
@@ -13,7 +13,7 @@ use std::process::exit;
use clap::{App, Arg, AppSettings};
-use openpgp::{HashAlgo, TPK, Packet, Signature, KeyID, Message};
+use openpgp::{HashAlgorithm, TPK, Packet, Signature, KeyID, Message};
use openpgp::parse::PacketParser;
use openpgp::parse::HashedReader;
@@ -166,7 +166,7 @@ fn real_main() -> Result<(), failure::Error> {
// .unwrap() is safe, because "file" is required.
let file = matches.value_of_os("file").unwrap();
- let hash_algos : Vec<HashAlgo>
+ let hash_algos : Vec<HashAlgorithm>
= sigs.iter().map(|&(ref sig, _, _)| sig.hash_algo).collect();
let hashes = HashedReader::file(file, &hash_algos[..])?;