summaryrefslogtreecommitdiff
path: root/pdf/pdf_crypt.c
AgeCommit message (Collapse)Author
2011-10-04Move to exception handling rather than error passing throughout.Robin Watts
This frees us from passing errors back everywhere, and hence enables us to pass results back as return values. Rather than having to explicitly check for errors everywhere and bubble them, we now allow exception handling to do the work for us; the downside to this is that we no longer emit as much debugging information as we did before (though this could be put back in). For now, the debugging information we have lost has been retained in comments with 'RJW:' at the start. This code needs fuller testing, but is being committed as a work in progress.
2011-09-21Add warning context.Tor Andersson
2011-09-21Don't thread ctx through safe fz_obj functions.Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-14Initial import of exception handling codeRobin Watts
Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet...
2011-09-02Relax length requirements of ID and U keys in encryption dictionaries.Tor Andersson
2011-07-29Bug 692382: Fix typo that broke encryption support.Robin Watts
Not quite sure how this one slipped through - must add encrypted documents to the mupdf test suite.
2011-06-14Fix Bug 692277: PDF file won't open.Robin Watts
Acrobat (and gs, see bug 690478) will open a file without a CF dictionary by assuming that the encryption type is RC4. Mirror this in mupdf.
2011-04-25Check AES encrypted string length and padding values.Tor Andersson
2011-04-14Expose informational encryption details.Tor Andersson
2011-04-10Make crypt struct opaque.Tor Andersson
2011-04-10Make fz_obj struct opaque.Tor Andersson
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-04-04pdf: Rename mupdf directory.Tor Andersson