From 75b6425fe9ce8136dbc852415471708d365b4d25 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 19 Jan 2012 00:58:09 +0100 Subject: 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. --- android/jni/mupdf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'android/jni') diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c index f0d13b73..7c630c26 100644 --- a/android/jni/mupdf.c +++ b/android/jni/mupdf.c @@ -35,7 +35,6 @@ JNIEXPORT int JNICALL Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jfilename) { const char *filename; - char *password = ""; int accelerate = 1; int pages = 0; @@ -65,7 +64,7 @@ Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jf LOGE("Opening document..."); fz_try(ctx) { - xref = pdf_open_xref(ctx, filename, password); + xref = pdf_open_xref(ctx, filename); } fz_catch(ctx) { -- cgit v1.2.3