From e25910b59ab84c7aada0b651e7dbb47f6830ad3d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 17 Oct 2009 23:37:55 +0000 Subject: reading crypt filters is largely implemented but not fully tested git-svn-id: svn+q:///qpdf/trunk@812 71b93d88-0707-0410-a8cf-f5a4172ac649 --- include/qpdf/QPDF.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 7df995b1..44d069f4 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -87,6 +87,7 @@ class DLL_EXPORT QPDF // Encryption support + enum encryption_method_e { e_none, e_unknown, e_rc4, e_aes }; struct EncryptionData { // This class holds data read from the encryption dictionary. @@ -397,6 +398,7 @@ class DLL_EXPORT QPDF std::vector& result); // methods to support encryption -- implemented in QPDF_encryption.cc + encryption_method_e interpretCF(QPDFObjectHandle); void initializeEncryption(); std::string getKeyForObject(int objid, int generation, bool use_aes); void decryptString(std::string&, int objid, int generation); @@ -739,7 +741,10 @@ class DLL_EXPORT QPDF bool attempt_recovery; int encryption_V; bool encrypt_metadata; - QPDFObjectHandle encryption_dictionary; + std::map crypt_filters; + encryption_method_e cf_stream; + encryption_method_e cf_string; + encryption_method_e cf_file; std::string provided_password; std::string user_password; std::string encryption_key; -- cgit v1.2.3-70-g09d2