diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-12-06 13:54:39 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-12-07 09:28:08 +0100 |
commit | f6536f4db61b73cf7fd4a44bb5ba61eff61f8f91 (patch) | |
tree | 52a0aff314ec81f6c011c793574ad464f5816a25 /xmlsecurity/source/xmlsec | |
parent | 0f32809a86630d9e8bbf46fef23e189896c8a497 (diff) |
some cosmetic improvements, better warnings
Change-Id: I05a7eeb74088c278aab94519c7f53b0482e38058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160400
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'xmlsecurity/source/xmlsec')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/ciphercontext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 ); |