[Libreoffice-commits] core.git: svl/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Jul 4 07:06:59 UTC 2018


 svl/source/crypto/cryptosign.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3c01b8cc4f15df16b4373855b8797d5dcff59327
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Jul 3 21:24:06 2018 +0200

    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 at collabora.co.uk>

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;
 }
 
 }


More information about the Libreoffice-commits mailing list