summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-07-03 21:24:06 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-07-04 09:06:35 +0200
commit3c01b8cc4f15df16b4373855b8797d5dcff59327 (patch)
treeebbe110757c5078c437108071b748dd48a47012c /svl
parent0bff0f77c2168589c23080f81f4fef1fc22a6fd7 (diff)
tdf#106854 svl windows: enable CNG by default
But keep the environment variable to disable it for testing purposes. This means that signing with ECDSA keys works out of the box on Windows. Change-Id: I2820deb45377c54b59cdbd27a490af9beaf62851 Reviewed-on: https://gerrit.libreoffice.org/56901 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/crypto/cryptosign.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index c7e62d58f836..f2566137a10a 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -2422,8 +2422,8 @@ bool Signing::Verify(SvStream& rStream,
bool isMSCng()
{
- static bool bMSCng = getenv("SVL_CRYPTO_CNG");
- return bMSCng;
+ static bool bNoMSCng = getenv("SVL_CRYPTO_NOCNG");
+ return !bNoMSCng;
}
}