summaryrefslogtreecommitdiff
path: root/poppler/XRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/XRef.h')
-rw-r--r--poppler/XRef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/poppler/XRef.h b/poppler/XRef.h
index d2e9e729..b1382b2a 100644
--- a/poppler/XRef.h
+++ b/poppler/XRef.h
@@ -41,7 +41,7 @@ class XRef {
public:
// Constructor. Read xref table from stream.
- XRef(BaseStream *strA, GooString *ownerPassword, GooString *userPassword);
+ XRef(BaseStream *strA);
// Destructor.
~XRef();
@@ -57,6 +57,10 @@ public:
Guchar *fileKeyA, int keyLengthA,
int encVersionA, int encRevisionA);
+ // Set the encryption parameters.
+ void setEncryption(int permFlagsA, GBool ownerPasswordOkA,
+ Guchar *fileKeyA, int keyLengthA, int encVersionA);
+
// Is the file encrypted?
GBool isEncrypted() { return encrypted; }
@@ -129,7 +133,6 @@ private:
GBool readXRefStreamSection(Stream *xrefStr, int *w, int first, int n);
GBool readXRefStream(Stream *xrefStr, Guint *pos);
GBool constructXRef();
- GBool checkEncrypted(GooString *ownerPassword, GooString *userPassword);
Guint strToUnsigned(char *s);
};