diff options
author | Robin Watts <robin.watts@artifex.com> | 2018-07-06 15:53:20 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-07-06 16:10:10 +0100 |
commit | 6223aeeddda9016356d8e7b114553489eccecd01 (patch) | |
tree | 6646ab3fbdb690bc53d43554b0bb2917ae81f0f7 /platform/x11 | |
parent | 619162b0dfea0b06188ff0729b6d52b11bb49b99 (diff) | |
download | mupdf-6223aeeddda9016356d8e7b114553489eccecd01.tar.xz |
Only do signing if HAVE_LIBCRYPTO is defined.
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/pdfapp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 17ec2679..5bacb467 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1682,8 +1682,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta { int nopts; int nvals; - const char **opts = NULL; - const char **vals = NULL; + char **opts = NULL; + char **vals = NULL; fz_var(opts); fz_var(vals); @@ -1719,6 +1719,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta break; case PDF_WIDGET_TYPE_SIGNATURE: +#ifdef HAVE_LIBCRYPTO if (state == -1) { char ebuf[256]; @@ -1774,6 +1775,9 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta } } } +#else + winwarn(app, "Cannot check signatures as no libcrypto!"); +#endif break; } } |