xmlsecurity: handle MDP permission during PDF verify
[LibreOffice.git] / xmlsecurity / inc / pdfio / pdfdocument.hxx
blob87fa1d51286b59067210b4b06cc976c0dd0cbc6c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
12 #define INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
14 #include <xmlsecuritydllapi.h>
16 namespace vcl
18 namespace filter
20 class PDFObjectElement;
21 class PDFDocument;
24 struct SignatureInformation;
25 class SvStream;
27 namespace xmlsecurity
29 namespace pdfio
31 /**
32 * @param rInformation The actual result.
33 * @param rDocument the parsed document to see if the signature is partial.
34 * @return If we can determinate a result.
36 XMLSECURITY_DLLPUBLIC bool ValidateSignature(SvStream& rStream,
37 vcl::filter::PDFObjectElement* pSignature,
38 SignatureInformation& rInformation,
39 vcl::filter::PDFDocument& rDocument, int nMDPPerm);
41 } // namespace pdfio
42 } // namespace xmlsecurity
44 #endif // INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */