proxygen
|
#include <SecurityProtocolContextManager.h>
Public Member Functions | |
void | addPeeker (PeekingCallbackPtr peekingCallback) |
AcceptorHandshakeManager * | getHandshakeManager (Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) noexcept |
size_t | getPeekBytes () const |
Private Attributes | |
std::vector< PeekingCallbackPtr > | peekingCallbacks_ |
size_t | numBytes_ {0} |
This class holds different peekers that will be used to get the appropriate AcceptorHandshakeHelper to handle the security protocol negotiation.
Definition at line 26 of file SecurityProtocolContextManager.h.
|
inline |
Adds a peeker to be used when accepting connections on a secure port. Peekers will be used in the order they are added.
Definition at line 32 of file SecurityProtocolContextManager.h.
References wangle::PeekingAcceptorHandshakeHelper::PeekCallback::getBytesRequired(), folly::gen::move, numBytes_, and peekingCallbacks_.
Referenced by wangle::Acceptor::init().
|
inlinenoexcept |
Definition at line 39 of file SecurityProtocolContextManager.h.
References numBytes_, and peekingCallbacks_.
Referenced by wangle::Acceptor::startHandshakeManager().
|
inline |
Definition at line 48 of file SecurityProtocolContextManager.h.
References numBytes_.
|
private |
Highest number of bytes required by a peeking callback.
Definition at line 61 of file SecurityProtocolContextManager.h.
Referenced by addPeeker(), getHandshakeManager(), and getPeekBytes().
|
private |
Peeking callbacks for each handshake protocol.
Definition at line 56 of file SecurityProtocolContextManager.h.
Referenced by addPeeker(), and getHandshakeManager().