From 8b8b5e21b03387d482ead79afe250cc7fe6e78f7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 19 Jan 2016 17:17:04 +0100 Subject: xmlsecurity: handle OOXML signatures in ImplGetSignatureInformations() With this, DigitalSignaturesDialog correctly shows the "Signed by" field when reading a single valid OOXML signature. Change-Id: Ic52a56767f65ab30924b07073d31677cb3a27de5 --- xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index bb93298a0d30..ea2430b8d7df 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -744,6 +745,8 @@ void DigitalSignaturesDialog::ImplGetSignatureInformations(bool bUseTempStream) uno::Reference< io::XInputStream > xInputStream( aStreamHelper.xSignatureStream, uno::UNO_QUERY ); maSignatureHelper.ReadAndVerifySignature( xInputStream ); } + else if (aStreamHelper.nStorageFormat == embed::StorageFormats::OFOPXML && aStreamHelper.xSignatureStorage.is()) + maSignatureHelper.ReadAndVerifySignatureStorage(aStreamHelper.xSignatureStorage); maSignatureHelper.EndMission(); maCurrentSignatureInformations = maSignatureHelper.GetSignatureInformations(); -- cgit