diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2017-12-22 15:11:38 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2018-01-19 13:52:25 +0000 |
commit | 371890461adeff0bcc8d4986f666c59055bebc70 (patch) | |
tree | a0fb68496eaa04a9dafac185c110ff72a4f4e26e | |
parent | 7b00d13e09bfe3d09b9f48142974e8cc936d1984 (diff) | |
download | mupdf-371890461adeff0bcc8d4986f666c59055bebc70.tar.xz |
Fix reading of pfx files
We'd neglected to specify binary mode when opening the file. Possibly
this affected only running under Windows.
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index 4526d5e9..7139156f 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -549,7 +549,7 @@ pdf_signer *pdf_read_pfx(fz_context *ctx, const char *pfile, const char *pw) ERR_clear_error(); - pfxbio = BIO_new_file(pfile, "r"); + pfxbio = BIO_new_file(pfile, "rb"); if (pfxbio == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "Can't open pfx file: %s", pfile); |