aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-09-06 17:18:56 +0200
committerJay Berkenbilt <ejb@ql.org>2022-09-06 18:45:12 +0200
commit94c79bb8f65e2a13c7bbe03437d2c8354068acb6 (patch)
tree37c0f320bab812ae292899fc1556f9f292b8ecef /include
parent7e07897106e0b0bb4d723d4fb5660a24fcc7a148 (diff)
downloadqpdf-94c79bb8f65e2a13c7bbe03437d2c8354068acb6.tar.zst
Support --show-encryption without a valid password (fixes #598)
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh
index 2d4ab0d2..2d552f64 100644
--- a/include/qpdf/QPDFJob.hh
+++ b/include/qpdf/QPDFJob.hh
@@ -490,22 +490,26 @@ class QPDFJob
std::vector<int> parseNumrange(char const* range, int max);
// Basic file processing
- std::shared_ptr<QPDF> processFile(
+ void processFile(
+ std::shared_ptr<QPDF>&,
char const* filename,
char const* password,
bool used_for_input,
bool main_input);
- std::shared_ptr<QPDF> processInputSource(
+ void processInputSource(
+ std::shared_ptr<QPDF>&,
std::shared_ptr<InputSource> is,
char const* password,
bool used_for_input);
- std::shared_ptr<QPDF> doProcess(
+ void doProcess(
+ std::shared_ptr<QPDF>&,
std::function<void(QPDF*, char const*)> fn,
char const* password,
bool empty,
bool used_for_input,
bool main_input);
- std::shared_ptr<QPDF> doProcessOnce(
+ void doProcessOnce(
+ std::shared_ptr<QPDF>&,
std::function<void(QPDF*, char const*)> fn,
char const* password,
bool empty,