summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2018-02-01 13:19:48 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2018-02-02 12:38:36 +0000
commit8ec561d1bccc46e9db40a9f61310cd8b3763914e (patch)
tree9db671082225933f9429ac9c0cc9ec1f4aaea3a1 /platform/x11
parente0b3451e473885a39ed54c8bf7a98e48a3cf5502 (diff)
downloadmupdf-8ec561d1bccc46e9db40a9f61310cd8b3763914e.tar.xz
Signature support: add a null pdf_check_signature function
Add a version of pdf_check_signature function that reports no support, for builds without openssl. This allows the removal of ifdefs from the apps.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index ca869f16..9ded94b3 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1714,7 +1714,6 @@ 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];
@@ -1732,9 +1731,6 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
winwarn(app, ebuf);
}
}
-#else
- winwarn(app, "No support for signatures in this build");
-#endif
break;
}
}