diff options
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/xsecctl.cxx | 11 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xsecparser.cxx | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index d85c39dbf974..f0fadc751a36 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -726,10 +726,13 @@ void XSecController::exportSignature( // GPG or X509 key? if (!signatureInfo.ouGpgCertificate.isEmpty()) { + pAttributeList = new SvXMLAttributeList(); + pAttributeList->AddAttribute("xmlns:loext", + "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"); /* Write PGPData element */ xDocumentHandler->startElement( "PGPData", - cssu::Reference< cssxs::XAttributeList > (new SvXMLAttributeList())); + cssu::Reference< cssxs::XAttributeList > (pAttributeList)); { /* Write keyid element */ xDocumentHandler->startElement( @@ -750,10 +753,10 @@ void XSecController::exportSignature( /* Write PGPOwner element */ xDocumentHandler->startElement( - "PGPOwner", - cssu::Reference< cssxs::XAttributeList > (new SvXMLAttributeList())); + "loext:PGPOwner", + cssu::Reference< cssxs::XAttributeList >(new SvXMLAttributeList())); xDocumentHandler->characters( signatureInfo.ouGpgOwner ); - xDocumentHandler->endElement( "PGPOwner" ); + xDocumentHandler->endElement( "loext:PGPOwner" ); } xDocumentHandler->endElement( "PGPData" ); } diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx index 1c1098c37261..9ad779261080 100644 --- a/xmlsecurity/source/helper/xsecparser.cxx +++ b/xmlsecurity/source/helper/xsecparser.cxx @@ -196,7 +196,7 @@ void SAL_CALL XSecParser::startElement( m_ouGpgCertificate.clear(); m_bInGpgCertificate = true; } - else if (aName == "PGPOwner") + else if (aName == "loext:PGPOwner") { m_ouGpgOwner.clear(); m_bInGpgOwner = true; @@ -324,7 +324,7 @@ void SAL_CALL XSecParser::endElement( const OUString& aName ) m_pXSecController->setGpgCertificate( m_ouGpgCertificate ); m_bInGpgCertificate = false; } - else if (aName == "PGPOwner") + else if (aName == "loext:PGPOwner") { m_pXSecController->setGpgOwner( m_ouGpgOwner ); m_bInGpgOwner = false; |