diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-24 15:34:48 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-24 17:01:19 +0200 |
commit | 5da146c8b53bb5a12c514f83fb52265e4922b5e1 (patch) | |
tree | 2de81282a32a66c86abf2aa0bf4cd191a2974b94 /include | |
parent | 5a0aef55a094da6ef3b2e8b0409830db60d58c5f (diff) | |
download | qpdf-5da146c8b53bb5a12c514f83fb52265e4922b5e1.tar.zst |
Track separately whether password was user/owner (fixes #159)
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 5fae5a57..c488e0b1 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -406,6 +406,12 @@ class QPDF encryption_method_e& string_method, encryption_method_e& file_method); + QPDF_DLL + bool ownerPasswordMatched() const; + + QPDF_DLL + bool userPasswordMatched() const; + // Encryption permissions -- not enforced by QPDF QPDF_DLL bool allowAccessibility(); @@ -756,6 +762,8 @@ class QPDF std::string cached_object_encryption_key; int cached_key_objid; int cached_key_generation; + bool user_password_matched; + bool owner_password_matched; }; class ForeignStreamData |