diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-07-24 11:29:27 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-27 23:28:22 +0200 |
commit | e1c1f1332942fc4f15122cf5e894a64da8e1be0e (patch) | |
tree | 9de6bc5a3d88522a3c81386323e4428f92efe00b /xmlsecurity/inc | |
parent | 31b595c0785c6991c55f8aa647efb2eab27fb0b8 (diff) |
xmlsecurity: detect unsigned incremental update between signatures
(cherry picked from commit 7468d5df5ec79783eae84b62bdc5ecf12f0ca255)
Conflicts:
vcl/source/filter/ipdf/pdfdocument.cxx
xmlsecurity/source/pdfio/pdfdocument.cxx
Change-Id: I269ed858852ee7d1275adf340c8cc1565fc30693
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99480
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/pdfio/pdfdocument.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlsecurity/inc/pdfio/pdfdocument.hxx b/xmlsecurity/inc/pdfio/pdfdocument.hxx index 996bb1527bb8..f7e36492e746 100644 --- a/xmlsecurity/inc/pdfio/pdfdocument.hxx +++ b/xmlsecurity/inc/pdfio/pdfdocument.hxx @@ -18,6 +18,7 @@ namespace vcl namespace filter { class PDFObjectElement; +class PDFDocument; } } struct SignatureInformation; @@ -29,12 +30,13 @@ namespace pdfio { /** * @param rInformation The actual result. - * @param bLast If this is the last signature in the file, so it covers the whole file physically. + * @param rDocument the parsed document to see if the signature is partial. * @return If we can determinate a result. */ XMLSECURITY_DLLPUBLIC bool ValidateSignature(SvStream& rStream, vcl::filter::PDFObjectElement* pSignature, - SignatureInformation& rInformation, bool bLast); + SignatureInformation& rInformation, + vcl::filter::PDFDocument& rDocument); } // namespace pdfio } // namespace xmlsecurity |