[Libreoffice-commits] core.git: include/sal xmlsecurity/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Thu Aug 10 15:39:58 UTC 2017


 include/sal/log-areas.dox                    |    1 +
 xmlsecurity/source/helper/ooxmlsecparser.cxx |    4 ++++
 2 files changed, 5 insertions(+)

New commits:
commit c3f8727fe88e3073272f573516d5662ddcbbaa13
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Fri Aug 4 15:43:55 2017 +0200

    xmlsecurity: Log unknown xml elements for ooxml
    
    Change-Id: I0daf81ac91da1d6206282e486298d059b937bb21
    Reviewed-on: https://gerrit.libreoffice.org/40819
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index f6094bc1ddc3..e99a05bbfbc9 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -530,6 +530,7 @@ certain functionality.
 @li @c xmlsecurity.comp - xml security component
 @li @c xmlsecurity.dialogs - xml security dialogs
 @li @c xmlsecurity.helper
+ at li @c xmlsecurity.ooxml - OOXML signature support
 @li @c xmlsecurity.pdfio - signing of existing PDF
 @li @c xmlsecurity.xmlsec - xmlsec wrapper
 @li @c xmlsecurity.xmlsec.gpg - gpg xmlsec component
diff --git a/xmlsecurity/source/helper/ooxmlsecparser.cxx b/xmlsecurity/source/helper/ooxmlsecparser.cxx
index 26f82b0ab47c..ed93da0fcca4 100644
--- a/xmlsecurity/source/helper/ooxmlsecparser.cxx
+++ b/xmlsecurity/source/helper/ooxmlsecparser.cxx
@@ -120,6 +120,10 @@ void SAL_CALL OOXMLSecParser::startElement(const OUString& rName, const uno::Ref
         m_aCertDigest.clear();
         m_bInCertDigest = true;
     }
+    else
+    {
+        SAL_INFO("xmlsecurity.ooxml", "Unknown xml element: " << rName);
+    }
 
     if (m_xNextHandler.is())
         m_xNextHandler->startElement(rName, xAttribs);


More information about the Libreoffice-commits mailing list