nss: upgrade to release 3.73
[LibreOffice.git] / ucb / source / ucp / cmis / certvalidation_handler.hxx
blob7aa7f42be62e9ba63f906a34895b63f9d28d2b6b
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 * This file incorporates work covered by the following license notice:
12 #ifndef INCLUDED_UCB_SOURCE_UCP_CMIS_CERTVALIDATION_HANDLER_HXX
13 #define INCLUDED_UCB_SOURCE_UCP_CMIS_CERTVALIDATION_HANDLER_HXX
15 #if defined __GNUC__ && !defined __clang__
16 #pragma GCC diagnostic push
17 #pragma GCC diagnostic ignored "-Wdeprecated"
18 #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
19 #endif
20 #include <libcmis/libcmis.hxx>
21 #if defined __GNUC__ && !defined __clang__
22 #pragma GCC diagnostic pop
23 #endif
25 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
27 namespace cmis
29 class CertValidationHandler : public libcmis::CertValidationHandler
31 const css::uno::Reference< css::ucb::XCommandEnvironment>& m_xEnv;
32 const css::uno::Reference< css::uno::XComponentContext >& m_xContext;
33 OUString m_sHostname;
35 public:
36 CertValidationHandler (
37 const css::uno::Reference< css::ucb::XCommandEnvironment>& xEnv,
38 const css::uno::Reference< css::uno::XComponentContext>& xContext,
39 const OUString& sHostname ):
40 m_xEnv( xEnv ), m_xContext( xContext ), m_sHostname( sHostname ) { }
42 bool validateCertificate( std::vector< std::string > certificates ) override;
46 #endif
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */