From f6536f4db61b73cf7fd4a44bb5ba61eff61f8f91 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 6 Dec 2023 13:54:39 +0100 Subject: some cosmetic improvements, better warnings Change-Id: I05a7eeb74088c278aab94519c7f53b0482e38058 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160400 Tested-by: Jenkins Reviewed-by: Michael Stahl --- xmlsecurity/source/xmlsec/nss/ciphercontext.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmlsecurity/source/xmlsec') diff --git a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx index ff3441249435..9577c6d9c025 100644 --- a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx +++ b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx @@ -160,7 +160,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::convertWithCipherContext( c { m_bBroken = true; Dispose(); - throw uno::RuntimeException(); + throw uno::RuntimeException("PK11_CipherOp failed"); } m_nConverted += aToConvert.getLength(); @@ -221,7 +221,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::finalizeCipherContextAndDis { m_bBroken = true; Dispose(); - throw uno::RuntimeException(); + throw uno::RuntimeException("PK11_CipherOp failed"); } aResult.realloc( nPrefResLen ); @@ -235,7 +235,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::finalizeCipherContextAndDis { m_bBroken = true; Dispose(); - throw uno::RuntimeException(); + throw uno::RuntimeException("PK11_DigestFinal failed"); } aResult.realloc( nPrefixLen + nFinalLen ); @@ -251,7 +251,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::finalizeCipherContextAndDis { m_bBroken = true; Dispose(); - throw uno::RuntimeException(); + throw uno::RuntimeException("incorrect size of padding"); } aResult.realloc( aResult.getLength() - nBytesToRemove ); -- cgit