blob: f8f48cedd9ece753e85adccbf2bdb19b1b59a368 [file] [log] [blame]
Alexander Afanasyevc169a812014-05-20 20:37:29 -04001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -08002/*
3 * Copyright (c) 2013-2017 Regents of the University of California.
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07004 *
5 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
Alexander Afanasyevdfa52c42014-04-24 21:10:11 -07006 *
Alexander Afanasyevc169a812014-05-20 20:37:29 -04007 * ndn-cxx library is free software: you can redistribute it and/or modify it under the
8 * terms of the GNU Lesser General Public License as published by the Free Software
9 * Foundation, either version 3 of the License, or (at your option) any later version.
10 *
11 * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14 *
15 * You should have received copies of the GNU General Public License and GNU Lesser
16 * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
Yingdi Yu6ac97982014-01-30 14:49:21 -080020 */
21
Yingdi Yufc40d872014-02-18 12:56:04 -080022#ifndef NDN_SECURITY_VALIDATOR_NULL_HPP
23#define NDN_SECURITY_VALIDATOR_NULL_HPP
Yingdi Yu6ac97982014-01-30 14:49:21 -080024
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080025#include "v2/validator.hpp"
Yingdi Yu6ac97982014-01-30 14:49:21 -080026
27namespace ndn {
Alexander Afanasyev2fa59392016-07-29 17:24:23 -070028namespace security {
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080029namespace v2 {
Yingdi Yu6ac97982014-01-30 14:49:21 -080030
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080031/**
32 * @brief Validator with "accept-all" policy and offline certificate fetcher
33 */
Alexander Afanasyev2a7f7202014-04-23 14:25:29 -070034class ValidatorNull : public Validator
35{
Yingdi Yu9a335352014-01-31 11:57:46 -080036public:
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080037 ValidatorNull();
Yingdi Yu6ac97982014-01-30 14:49:21 -080038};
39
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080040security::v2::Validator&
41getAcceptAllValidator();
42
43} // namespace v2
44
45using v2::ValidatorNull;
46using v2::getAcceptAllValidator;
47
Alexander Afanasyev2fa59392016-07-29 17:24:23 -070048} // namespace security
Yingdi Yufc40d872014-02-18 12:56:04 -080049} // namespace ndn
Yingdi Yu6ac97982014-01-30 14:49:21 -080050
Alexander Afanasyev6dfeffe2017-01-30 22:40:32 -080051#endif // NDN_SECURITY_VALIDATOR_NULL_HPP