diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-18 17:17:24 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-22 09:43:22 +0200 |
commit | 090e243c401fdb73a917a5deb36279c445cfcbb9 (patch) | |
tree | 1c5e9e1710e648b9eac664b8d23cc485cbdaf233 /xmlsecurity | |
parent | 6499ea2ff45fa42094d41c5c417f66a3ae5a22ae (diff) |
tdf#83877 Use Signer comments as signature description
Change-Id: Ia9f18addeee9cf86989c873419113ddbd07c219f
Reviewed-on: https://gerrit.libreoffice.org/54551
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/component/documentdigitalsignatures.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index 2c40f69b53f6..7b708b0c99aa 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -109,7 +109,8 @@ public: const css::uno::Reference<css::io::XStream>& xSignStream, const OUString& aSignatureLineId, const Reference<css::security::XCertificate>& xCertificate, const Reference<css::graphic::XGraphic>& xValidGraphic, - const Reference<css::graphic::XGraphic>& xInvalidGraphic) override; + const Reference<css::graphic::XGraphic>& xInvalidGraphic, + const OUString& aComment) override; css::uno::Sequence<css::security::DocumentSignatureInformation> SAL_CALL verifyDocumentContentSignatures( const css::uno::Reference<css::embed::XStorage>& xStorage, @@ -230,7 +231,8 @@ sal_Bool DocumentDigitalSignatures::signSignatureLine( const OUString& aSignatureLineId, const Reference<css::security::XCertificate>& xCertificate, const Reference<css::graphic::XGraphic>& xValidGraphic, - const Reference<css::graphic::XGraphic>& xInvalidGraphic) + const Reference<css::graphic::XGraphic>& xInvalidGraphic, + const OUString& aComment) { OSL_ENSURE(!m_sODFVersion.isEmpty(), "DocumentDigitalSignatures: ODF Version not set, assuming minimum 1.2"); @@ -253,8 +255,7 @@ sal_Bool DocumentDigitalSignatures::signSignatureLine( xSecurityContext = aSignatureManager.getSecurityContext(); sal_Int32 nSecurityId; - OUString aDescription(""); - bool bSuccess = aSignatureManager.add(xCertificate, xSecurityContext, aDescription, nSecurityId, + bool bSuccess = aSignatureManager.add(xCertificate, xSecurityContext, aComment, nSecurityId, true, aSignatureLineId, xValidGraphic, xInvalidGraphic); if (!bSuccess) return false; |