summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mupdf/fitz/document.h4
-rw-r--r--source/fitz/document.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index 0c31e713..d1bbd75b 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -23,7 +23,7 @@ struct fz_document_s
{
void (*close)(fz_document *);
int (*needs_password)(fz_document *doc);
- int (*authenticate_password)(fz_document *doc, char *password);
+ int (*authenticate_password)(fz_document *doc, const char *password);
fz_outline *(*load_outline)(fz_document *doc);
int (*count_pages)(fz_document *doc);
fz_page *(*load_page)(fz_document *doc, int number);
@@ -94,7 +94,7 @@ int fz_needs_password(fz_document *doc);
Does not throw exceptions.
*/
-int fz_authenticate_password(fz_document *doc, char *password);
+int fz_authenticate_password(fz_document *doc, const char *password);
/*
fz_load_outline: Load the hierarchical document outline.
diff --git a/source/fitz/document.c b/source/fitz/document.c
index d1f90479..3926255b 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -111,7 +111,7 @@ fz_needs_password(fz_document *doc)
}
int
-fz_authenticate_password(fz_document *doc, char *password)
+fz_authenticate_password(fz_document *doc, const char *password)
{
if (doc && doc->authenticate_password)
return doc->authenticate_password(doc, password);