summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc/xmlsignaturehelper.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-11-09 15:14:03 +0200
committerTor Lillqvist <tml@collabora.com>2016-11-10 17:52:01 +0200
commit59547a54958914f57f5a9bcff6434c3acca042f6 (patch)
tree084a28528581f779699ab67f17a5621454c26bec /xmlsecurity/inc/xmlsignaturehelper.hxx
parent2d2160bbbd326fa3249d10bed97392215027c8c9 (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.hxx5
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);