summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 16:20:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-09 08:46:34 +0200
commit48fbfe38f60de731ff8bec0372179bedd6670af4 (patch)
tree2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /xmlsecurity
parent115a8539038ecdd5e496fb6c84101c5b14d11068 (diff)
use more DBG_UNHANDLED_EXCEPTION
so we get nice logs of the exception dynamic type for UNO exceptions. Change-Id: Ic0b10dc14d354a2c9a0591b3a51d2f1640d54bdb Reviewed-on: https://gerrit.libreoffice.org/52465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/pdfsignaturehelper.cxx5
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx5
2 files changed, 6 insertions, 4 deletions
diff --git a/xmlsecurity/source/helper/pdfsignaturehelper.cxx b/xmlsecurity/source/helper/pdfsignaturehelper.cxx
index b3f2f16fb193..3e3e6ebdf467 100644
--- a/xmlsecurity/source/helper/pdfsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/pdfsignaturehelper.cxx
@@ -20,6 +20,7 @@
#include <vcl/filter/pdfdocument.hxx>
#include <pdfio/pdfdocument.hxx>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
@@ -90,9 +91,9 @@ PDFSignatureHelper::GetDocumentSignatureInformations(
{
rExternal.CertificateStatus = xSecEnv->verifyCertificate(rExternal.Signer, {});
}
- catch (const uno::SecurityException& rException)
+ catch (const uno::SecurityException&)
{
- SAL_WARN("xmlsecurity.helper", "failed to verify certificate: " << rException);
+ DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper", "failed to verify certificate");
rExternal.CertificateStatus = security::CertificateValidity::INVALID;
}
}
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index dcc30de40f61..9745fa19304b 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -48,6 +48,7 @@
#include <tools/time.hxx>
#include <comphelper/ofopxmlhelper.hxx>
#include <comphelper/sequence.hxx>
+#include <tools/diagnose_ex.h>
#define NS_DOCUMENTSIGNATURES "http://openoffice.org/2004/documentsignatures"
#define NS_DOCUMENTSIGNATURES_ODF_1_2 "urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0"
@@ -394,9 +395,9 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref
{
xParser->parseStream(aParserInput);
}
- catch(const uno::Exception& rException)
+ catch(const uno::Exception&)
{
- SAL_WARN("xmlsecurity.helper", "XMLSignatureHelper::ReadAndVerifySignatureStorageStream: " << rException);
+ DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper");
}
mpXSecController->releaseSignatureReader();