From 92d3cbecd4ea375d8de95bffc0fe8651c698f568 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 16 Apr 2020 11:43:37 -0400 Subject: Fix warnings reported by -Wshadow=local (fixes #431) --- libqpdf/QPDF_encryption.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libqpdf/QPDF_encryption.cc') diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc index 9880face..48351122 100644 --- a/libqpdf/QPDF_encryption.cc +++ b/libqpdf/QPDF_encryption.cc @@ -322,10 +322,10 @@ hash_V5(std::string const& password, int next_hash = ((E_mod_3 == 0) ? 256 : (E_mod_3 == 1) ? 384 : 512); - Pl_SHA2 hash(next_hash); - hash.write(QUtil::unsigned_char_pointer(E), E.length()); - hash.finish(); - K = hash.getRawDigest(); + Pl_SHA2 sha2(next_hash); + sha2.write(QUtil::unsigned_char_pointer(E), E.length()); + sha2.finish(); + K = sha2.getRawDigest(); if (round_number >= 64) { -- cgit v1.2.3-54-g00ecf