diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-28 13:52:37 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-28 20:28:17 +0200 |
commit | 07556be594c77f9b7886ff31c2e1752f937cacd4 (patch) | |
tree | bac4a0b2fb2618345e6b920351fecdc130e00920 /vcl/source/gdi | |
parent | af00f50211c9e3f13c4a6d8f0a8f0fabf377c56a (diff) |
Select svl crypto backend in configure.ac
And define USE_CRYPTO_* macros to select it in code. This way we
can get rid of all the HAVE_FEATURE_NSS and _WIN32 variations.
This also reverts 1f6b98f21495f0ecc5ded493cb3273da03852191.
Change-Id: I101e4ae2f49cdb127d59bd49a4f1c86304ca2238
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116338
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 3fa3a10d31a0..5ca3dfd4cf25 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <config_features.h> +#include <config_crypto.h> #include <sal/types.h> @@ -81,14 +81,6 @@ #include "pdfwriter_impl.hxx" -#ifdef _WIN32 -// WinCrypt headers for PDF signing -// Note: this uses Windows 7 APIs and requires the relevant data types -#include <prewin.h> -#include <wincrypt.h> -#include <postwin.h> -#endif - #include <config_eot.h> #if ENABLE_EOT @@ -99,23 +91,6 @@ using namespace::com::sun::star; static bool g_bDebugDisableCompression = getenv("VCL_DEBUG_DISABLE_PDFCOMPRESSION"); -#if HAVE_FEATURE_NSS -// Is this length truly the maximum possible, or just a number that -// seemed large enough when the author tested this (with some type of -// certificates)? I suspect the latter. - -// Used to be 0x4000 = 16384, but a sample signed PDF (produced by -// some other software) provided by the customer has a signature -// content that is 30000 bytes. The SampleSignedPDFDocument.pdf from -// Adobe has one that is 21942 bytes. So let's be careful. Pity this -// can't be dynamic, at least not without restructuring the code. Also -// note that the checks in the code for this being too small -// apparently are broken, if this overflows you end up with an invalid -// PDF. Need to fix that. - -#define MAX_SIGNATURE_CONTENT_LENGTH 50000 -#endif - namespace { |