diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-11-09 15:14:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-11-10 17:52:01 +0200 |
commit | 59547a54958914f57f5a9bcff6434c3acca042f6 (patch) | |
tree | 084a28528581f779699ab67f17a5621454c26bec /xmlsecurity/inc/xmlsignaturehelper.hxx | |
parent | 2d2160bbbd326fa3249d10bed97392215027c8c9 (diff) |
More work in progress on XAdES compliant ODF signing
Pass an XAdES flag to a couple more functions and adapt to that.
Factor out writeDigestMethod() and writeSignedProperties() from
OOXMLSecExporter::Impl to DocumentSignatureHelper and use them in an
additional place.
Write xd:UnsignedProperties with EncapsulatedX509Certificate. Probably
much more work needed.
Change-Id: I2a0cd1db6dd487b9c7ba256ad29473de3d271cd8
Diffstat (limited to 'xmlsecurity/inc/xmlsignaturehelper.hxx')
-rw-r--r-- | xmlsecurity/inc/xmlsignaturehelper.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmlsecurity/inc/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsignaturehelper.hxx index c2a163b437e4..89eeb555f239 100644 --- a/xmlsecurity/inc/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsignaturehelper.hxx @@ -171,7 +171,10 @@ public: // will be very useful, see Mission 3 in the new "multisigdemo" program :-) css::uno::Reference< css::xml::sax::XWriter> CreateDocumentHandlerWithHeader( const css::uno::Reference< css::io::XOutputStream >& xOutputStream ); static void CloseDocumentHandler( const css::uno::Reference< css::xml::sax::XDocumentHandler>& xDocumentHandler ); - static void ExportSignature( const css::uno::Reference< css::xml::sax::XDocumentHandler >& xDocumentHandler, const SignatureInformation& signatureInfo ); + static void ExportSignature( + const css::uno::Reference< css::xml::sax::XDocumentHandler >& xDocumentHandler, + const SignatureInformation& signatureInfo, + bool bXAdESCompliantIfODF ); /// Read and verify OOXML signatures. bool ReadAndVerifySignatureStorage(const css::uno::Reference<css::embed::XStorage>& xStorage, bool bCacheLastSignature = true); |