summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-24 15:34:48 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-24 17:01:19 +0200
commit5da146c8b53bb5a12c514f83fb52265e4922b5e1 (patch)
tree2de81282a32a66c86abf2aa0bf4cd191a2974b94 /libqpdf/QPDF.cc
parent5a0aef55a094da6ef3b2e8b0409830db60d58c5f (diff)
downloadqpdf-5da146c8b53bb5a12c514f83fb52265e4922b5e1.tar.zst
Track separately whether password was user/owner (fixes #159)
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 1d54ef44..fd661ba0 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -132,7 +132,9 @@ QPDF::EncryptionParameters::EncryptionParameters() :
cf_string(e_none),
cf_file(e_none),
cached_key_objid(0),
- cached_key_generation(0)
+ cached_key_generation(0),
+ user_password_matched(false),
+ owner_password_matched(false)
{
}