proxygen
ClientExtensions.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 
11 #include <fizz/record/Types.h>
12 
13 namespace fizz {
14 
15 /*
16  * This class allows for Extensions to be added to Client Hello, and then
17  * checked against EncryptedExtensions negotiated by the server.
18  */
20  public:
21  virtual ~ClientExtensions() = default;
22 
28  virtual std::vector<Extension> getClientHelloExtensions() const = 0;
29 
33  virtual void onEncryptedExtensions(
34  const std::vector<Extension>& extensions) = 0;
35 };
36 } // namespace fizz
virtual ~ClientExtensions()=default
virtual void onEncryptedExtensions(const std::vector< Extension > &extensions)=0
Definition: Actions.h:16
virtual std::vector< Extension > getClientHelloExtensions() const =0