From 6499ea2ff45fa42094d41c5c417f66a3ae5a22ae Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 18 May 2018 08:08:16 +0200 Subject: tdf#83877 Add valid/invalid images to signatures Change-Id: I958c1bad2f32383ebaaeb7d42c761f0d1dfefc35 Reviewed-on: https://gerrit.libreoffice.org/54513 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- .../com/sun/star/security/XDocumentDigitalSignatures.idl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'offapi') diff --git a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl index c31af5e176fd..b1c3020229e0 100644 --- a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl +++ b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl @@ -47,16 +47,21 @@ interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface [in] ::com::sun::star::io::XStream xSignStream); /** Signs the content of the document including text and pictures - using the given XCertificate + using the given XCertificate. + + Also adds the given Signature Line Id and the signed and unsigned graphics to + the signature. Macros will not be signed. @since LibreOffice 6.1 */ - boolean signDocumentContentWithCertificate( [in] ::com::sun::star::embed::XStorage xStorage, - [in] ::com::sun::star::io::XStream xSignStream, - [in] ::com::sun::star::security::XCertificate xCertificate, - [in] string signatureLineId); + boolean signSignatureLine( [in] ::com::sun::star::embed::XStorage xStorage, + [in] ::com::sun::star::io::XStream xSignStream, + [in] string signatureLineId, + [in] ::com::sun::star::security::XCertificate xCertificate, + [in] ::com::sun::star::graphic::XGraphic xValidGraphic, + [in] ::com::sun::star::graphic::XGraphic xInvalidGraphic); /** checks for digital signatures and their status. -- cgit