diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-09-24 21:06:46 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-25 09:02:57 +0200 |
commit | 2dd3d03b5350e18cb5f39978022620b55d3d8c5b (patch) | |
tree | 5c82e20fef4188cad18ed88be6b6a1a98613750c /xmlsecurity/inc | |
parent | 6505f43b09fda83f26159746083b971bfab8054a (diff) |
xmlsecurity: fold pdfio into pdfsignaturehelper
Most of the initial pdfio was moved to vcl as vcl::filter::PDFDocument.
A small part was left here, because it depended on NSS. Then later the
NSS bits were moved to svl::crypto::Signing. The rest is just a small
amount of code, keeping that separate from PDFSignatureHelper, which is
its only user makes little sense.
With this, vcl::filter::PDFDocument is an implementation detail of
PDFSignatureHelper during signature verification.
Change-Id: I6230f9e46deeff7159970f88dbb3bd2de0e9ce7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103350
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/pdfio/pdfdocument.hxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/xmlsecurity/inc/pdfio/pdfdocument.hxx b/xmlsecurity/inc/pdfio/pdfdocument.hxx deleted file mode 100644 index 4e36978ee009..000000000000 --- a/xmlsecurity/inc/pdfio/pdfdocument.hxx +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - */ - -#ifndef INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX -#define INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX - -#include <xmlsecuritydllapi.h> - -namespace vcl::filter -{ -class PDFObjectElement; -class PDFDocument; -} -struct SignatureInformation; -class SvStream; - -namespace xmlsecurity::pdfio -{ -/** - * @param rInformation The actual result. - * @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, - vcl::filter::PDFDocument& rDocument); - -} // namespace xmlsecurity::pdfio - -#endif // INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |