summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-07-16 03:15:24 +0200
committerJay Berkenbilt <ejb@ql.org>2012-07-16 03:15:24 +0200
commita101533e0a76a0890a2ad3ea5fcbb578da75a6b4 (patch)
treebbd553716ff1ddd2224a03248ba7be802bfcd4ea /include
parentb26ce88ea172a5a3b66d0b8dd94b98043831eb27 (diff)
downloadqpdf-a101533e0a76a0890a2ad3ea5fcbb578da75a6b4.tar.zst
Add command line option to copy encryption from other file
Add --copy-encryption and --encryption-file-password options to qpdf. Also strengthen test suite for copying encryption. The strengthened test suite would have caught the failure to preserve AES and the failure to update the file version, which was invalidating the encrypted data.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 4c8ede86..3b72e981 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -248,6 +248,12 @@ class QPDF
QPDF_DLL
bool isEncrypted(int& R, int& P);
+ QPDF_DLL
+ bool isEncrypted(int& R, int& P, int& V,
+ encryption_method_e& stream_method,
+ encryption_method_e& string_method,
+ encryption_method_e& file_method);
+
// Encryption permissions -- not enforced by QPDF
QPDF_DLL
bool allowAccessibility();