diff --git a/oox/qa/unit/CryptoTest.cxx b/oox/qa/unit/CryptoTest.cxx index 94f1f765fc2b..cbdf99b65216 100644 --- a/oox/qa/unit/CryptoTest.cxx +++ b/oox/qa/unit/CryptoTest.cxx @@ -7,6 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include #include #include @@ -20,11 +21,16 @@ #include #include +#if USE_TLS_NSS +#include +#endif + using namespace css; class CryptoTest : public CppUnit::TestFixture { public: + virtual ~CryptoTest() override; void testCryptoHash(); void testRoundUp(); void testStandard2007(); @@ -58,6 +64,13 @@ std::string toString(std::vector const& aInput) } } +CryptoTest::~CryptoTest() +{ +#if USE_TLS_NSS + NSS_Shutdown(); +#endif +} + void CryptoTest::testCryptoHash() { // Check examples from Wikipedia (https://en.wikipedia.org/wiki/HMAC)