summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-07-11 12:23:52 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-08-10 12:09:33 +0200
commit37ed199fcebc73954e694b44033aeca4ab8a417f (patch)
tree22ae28e8efca1429704d1b9aad8eb4cfcbbabb11 /platform/x11
parent09f2e173850e011e6390c49a4f761e87dd87ffba (diff)
downloadmupdf-37ed199fcebc73954e694b44033aeca4ab8a417f.tar.xz
Use stubs instead of conditional compile with HAVE_LIBCRYPTO.
The macro is only set when building the pkcs7-helper library, so cannot be used by client code. Build stub functions when compiling the pkcs7-openssl helper library without libcrypto.
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 22fb7f1b..c273bfea 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1696,7 +1696,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];
@@ -1752,9 +1751,6 @@ 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;
}
}