summaryrefslogtreecommitdiff
path: root/platform
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
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')
-rw-r--r--platform/win32/mupdf.vcproj17
-rw-r--r--platform/x11/pdfapp.c4
2 files changed, 0 insertions, 21 deletions
diff --git a/platform/win32/mupdf.vcproj b/platform/win32/mupdf.vcproj
index 84e3a359..d4c42ec8 100644
--- a/platform/win32/mupdf.vcproj
+++ b/platform/win32/mupdf.vcproj
@@ -1360,7 +1360,6 @@
>
<FileConfiguration
Name="Debug|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1368,7 +1367,6 @@
</FileConfiguration>
<FileConfiguration
Name="Debug|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1376,7 +1374,6 @@
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1384,7 +1381,6 @@
</FileConfiguration>
<FileConfiguration
Name="Release|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1392,7 +1388,6 @@
</FileConfiguration>
<FileConfiguration
Name="Memento|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1400,7 +1395,6 @@
</FileConfiguration>
<FileConfiguration
Name="Memento|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1415,7 +1409,6 @@
</FileConfiguration>
<FileConfiguration
Name="DebugOpenssl|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1423,7 +1416,6 @@
</FileConfiguration>
<FileConfiguration
Name="ReleaseOpenssl|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1431,7 +1423,6 @@
</FileConfiguration>
<FileConfiguration
Name="ReleaseOpenssl|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1439,7 +1430,6 @@
</FileConfiguration>
<FileConfiguration
Name="DebugGProof|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1447,7 +1437,6 @@
</FileConfiguration>
<FileConfiguration
Name="DebugGProof|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1455,7 +1444,6 @@
</FileConfiguration>
<FileConfiguration
Name="MementoCommercial|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1463,7 +1451,6 @@
</FileConfiguration>
<FileConfiguration
Name="MementoCommercial|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1471,7 +1458,6 @@
</FileConfiguration>
<FileConfiguration
Name="DebugCommercial|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1479,7 +1465,6 @@
</FileConfiguration>
<FileConfiguration
Name="DebugCommercial|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1487,7 +1472,6 @@
</FileConfiguration>
<FileConfiguration
Name="ReleaseCommercial|Win32"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@@ -1495,7 +1479,6 @@
</FileConfiguration>
<FileConfiguration
Name="ReleaseCommercial|x64"
- ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
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;
}
}