diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-05 09:54:11 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-05 10:27:45 +0100 |
commit | 88cbfe58c4a36c20bdb2445f43043f0a5a006ee3 (patch) | |
tree | f76b878cbbf944b9f0f08e8390975a6f9201100a /xmlsecurity/inc | |
parent | 679cc560bc2cfc6c75b8979cc115c9c54e2b0d40 (diff) |
xmlsecurity: add XMLSignatureHelper::SetDescription()
First step to be able to add a comment while signing a document.
Change-Id: I8f7ab95de5015b723481e94bd72585caf754288f
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/xmlsecurity/sigstruct.hxx | 4 | ||||
-rw-r--r-- | xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx index 0eb7cd8e431d..ea0e0f365f7f 100644 --- a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx +++ b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx @@ -74,6 +74,10 @@ struct SignatureInformation OUString ouDateTime; OUString ouSignatureId; OUString ouPropertyId; + /// Characters of the <dc:description> element inside the signature. + OUString ouDescription; + /// The Id attribute of the <SignatureProperty> element that contains the <dc:description>. + OUString ouDescriptionPropertyId; SignatureInformation( sal_Int32 nId ) { diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx index 9ac33fc4a3d2..e4c981d4e160 100644 --- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx @@ -164,6 +164,7 @@ public: const OUString& ouX509SerialNumber, const OUString& ouX509Cert); void SetDateTime( sal_Int32 nSecurityId, const Date& rDate, const tools::Time& rTime ); + void SetDescription(sal_Int32 nSecurityId, const OUString& rDescription); void AddForSigning( sal_Int32 securityId, const OUString& uri, const OUString& objectURL, bool bBinary ); bool CreateAndWriteSignature( const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler ); |