proxygen
CertificateVerifier.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
12 #include <fizz/record/Extensions.h>
13 
14 namespace fizz {
15 
17  public:
19  const std::string& msg,
21  : FizzException(msg, alert) {}
22 };
23 
25  public:
26  virtual ~CertificateVerifier() = default;
27 
33  virtual void verify(
34  const std::vector<std::shared_ptr<const PeerCert>>& certs) const = 0;
35 
39  virtual std::vector<Extension> getCertificateRequestExtensions() const = 0;
40 };
41 } // namespace fizz
void verify(int extras)
FizzVerificationException(const std::string &msg, folly::Optional< AlertDescription > alert)
Definition: Actions.h:16
const char * string
Definition: Conv.cpp:212