diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-03 15:03:45 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-03 15:03:45 +0100 |
commit | b298e538d1bec7db5b2fad5d020df8dcf4c2067b (patch) | |
tree | 111004ba8aa9ea8ad0e1d369e5c408d9f89853b5 /sqv | |
parent | 271802a7f1daf3802ecf5e496e1ede48da874031 (diff) |
openpgp: Rename hash_file to hash_reader, improve documentation.
Diffstat (limited to 'sqv')
-rw-r--r-- | sqv/src/sqv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index a7ddf0e7..59ea23d2 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -149,7 +149,7 @@ fn real_main() -> Result<(), failure::Error> { let hash_algos : Vec<HashAlgorithm> = sigs.iter().map(|&(ref sig, _)| sig.hash_algo()).collect(); let hashes: HashMap<_, _> = - openpgp::crypto::hash_file(File::open(file)?, &hash_algos[..])? + openpgp::crypto::hash_reader(File::open(file)?, &hash_algos[..])? .into_iter().map(|ctx| (ctx.algo(), ctx)).collect(); fn cert_has_key(cert: &Cert, keyid: &KeyID) -> bool { |