diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2018-01-04 15:11:24 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2018-01-19 13:52:25 +0000 |
commit | bcce8e5dc38509c5aa43174a0d6e0341444f1d87 (patch) | |
tree | 27bcd71231a322ad83fb7e83ff56d02e458f3ee6 /include | |
parent | 457873fbf7fd6d40242722f3a51b41428302d0ca (diff) | |
download | mupdf-bcce8e5dc38509c5aa43174a0d6e0341444f1d87.tar.xz |
Perform document signing via fz_stream and fz_output
This change achieves two goals. It allows signing to be performed even
when the document is obtained other than from a disk file. It also
reestablishes to a working state signing of file-based documents, a feature
that was broken due to complete_signatures being called after certain
tables, avaialble via the output options object, had been destroyed.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/crypt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mupdf/pdf/crypt.h b/include/mupdf/pdf/crypt.h index f66fe0d2..46970870 100644 --- a/include/mupdf/pdf/crypt.h +++ b/include/mupdf/pdf/crypt.h @@ -37,7 +37,7 @@ pdf_signer *pdf_read_pfx(fz_context *ctx, const char *sigfile, const char *passw pdf_signer *pdf_keep_signer(fz_context *ctx, pdf_signer *signer); void pdf_drop_signer(fz_context *ctx, pdf_signer *signer); pdf_designated_name *pdf_signer_designated_name(fz_context *ctx, pdf_signer *signer); -void pdf_write_digest(fz_context *ctx, pdf_document *doc, const char *filename, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer); +void pdf_write_digest(fz_context *ctx, fz_output *out, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer); /* pdf_signature_widget_byte_range: retrieve the byte range for a signature widget |