2016-10-13 10:37:02 +02:00
|
|
|
/* -*- 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/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-09-05 22:57:54 +02:00
|
|
|
#ifndef INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
|
|
|
|
#define INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
|
2016-10-13 10:37:02 +02:00
|
|
|
|
2017-09-05 22:57:54 +02:00
|
|
|
#include <xmlsecuritydllapi.h>
|
2017-02-24 13:46:52 +01:00
|
|
|
|
2018-01-03 21:06:56 +01:00
|
|
|
namespace vcl
|
|
|
|
{
|
|
|
|
namespace filter
|
|
|
|
{
|
|
|
|
class PDFObjectElement;
|
|
|
|
}
|
|
|
|
}
|
2017-02-24 13:46:52 +01:00
|
|
|
struct SignatureInformation;
|
2018-01-03 21:06:56 +01:00
|
|
|
class SvStream;
|
2016-10-13 10:37:02 +02:00
|
|
|
|
|
|
|
namespace xmlsecurity
|
|
|
|
{
|
|
|
|
namespace pdfio
|
|
|
|
{
|
2017-03-21 16:26:11 +01:00
|
|
|
/**
|
|
|
|
* @param rInformation The actual result.
|
|
|
|
* @param bLast If this is the last signature in the file, so it covers the whole file physically.
|
|
|
|
* @return If we can determinate a result.
|
|
|
|
*/
|
2018-03-21 13:23:58 +01:00
|
|
|
XMLSECURITY_DLLPUBLIC bool ValidateSignature(SvStream& rStream,
|
|
|
|
vcl::filter::PDFObjectElement* pSignature,
|
|
|
|
SignatureInformation& rInformation, bool bLast);
|
2017-03-21 16:26:11 +01:00
|
|
|
|
2016-10-13 10:37:02 +02:00
|
|
|
} // namespace pdfio
|
|
|
|
} // namespace xmlsecurity
|
|
|
|
|
2017-09-05 22:57:54 +02:00
|
|
|
#endif // INCLUDED_XMLSECURITY_INC_PDFIO_PDFDOCUMENT_HXX
|
2016-10-13 10:37:02 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|