summaryrefslogtreecommitdiff
path: root/source/tools
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 /source/tools
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 'source/tools')
-rw-r--r--source/tools/pdfsign.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/tools/pdfsign.c b/source/tools/pdfsign.c
index 434c9332..b9b1c862 100644
--- a/source/tools/pdfsign.c
+++ b/source/tools/pdfsign.c
@@ -23,14 +23,10 @@ static void usage(void)
void verify_signature(fz_context *ctx, pdf_document *doc, int n, pdf_widget *widget)
{
-#ifdef HAVE_LIBCRYPTO
char msg[256];
printf("verifying signature on page %d\n", n+1);
pdf_check_signature(ctx, doc, widget, msg, sizeof msg);
printf(" result: '%s'\n", msg);
-#else
- printf("No signature support in this build\n");
-#endif
}
void verify_page(fz_context *ctx, pdf_document *doc, int n, pdf_page *page)