summaryrefslogtreecommitdiff
path: root/pdf/mupdf.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-19 00:58:09 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-19 17:48:49 +0100
commit75b6425fe9ce8136dbc852415471708d365b4d25 (patch)
tree3d5533b150d5eb5fd3fe8efa8b667512a44edef7 /pdf/mupdf.h
parent08e84b18e5c1dbe8f3d32dd0aeb4b4c43debce9f (diff)
downloadmupdf-75b6425fe9ce8136dbc852415471708d365b4d25.tar.xz
Remove confusing optional 'password' argument to pdf_open_xref.
Require that clients call pdf_needs_password/pdf_authenticate_password instead. For dumb clients, we still allow for decrypting a file with a blank password without calling those functions.
Diffstat (limited to 'pdf/mupdf.h')
-rw-r--r--pdf/mupdf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/mupdf.h b/pdf/mupdf.h
index b1b2a7e1..dfce00c1 100644
--- a/pdf/mupdf.h
+++ b/pdf/mupdf.h
@@ -106,8 +106,8 @@ fz_stream *pdf_open_raw_stream(pdf_xref *, int num, int gen);
fz_stream *pdf_open_stream(pdf_xref *, int num, int gen);
fz_stream *pdf_open_stream_at(pdf_xref *xref, int num, int gen, fz_obj *dict, int stm_ofs);
-pdf_xref *pdf_open_xref_with_stream(fz_stream *file, char *password);
-pdf_xref *pdf_open_xref(fz_context *ctx, const char *filename, char *password);
+pdf_xref *pdf_open_xref_with_stream(fz_stream *file);
+pdf_xref *pdf_open_xref(fz_context *ctx, const char *filename);
void pdf_free_xref(pdf_xref *);
/* private */