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