proxygen
|
#include <RecordLayer.h>
Public Member Functions | |
virtual | ~WriteRecordLayer ()=default |
virtual TLSContent | write (TLSMessage &&msg) const =0 |
TLSContent | writeAlert (Alert &&alert) const |
TLSContent | writeAppData (std::unique_ptr< folly::IOBuf > &&appData) const |
template<typename... Args> | |
TLSContent | writeHandshake (Buf &&encodedHandshakeMsg, Args &&...args) const |
void | setProtocolVersion (ProtocolVersion version) const |
virtual EncryptionLevel | getEncryptionLevel () const =0 |
Protected Attributes | |
ProtocolVersion | recordVersion_ {ProtocolVersion::tls_1_2} |
bool | useAdditionalData_ {true} |
Static Private Member Functions | |
template<typename... Args> | |
static void | addMessage (Buf &buf, Buf &&add, Args &&...args) |
static void | addMessage (Buf &) |
Definition at line 59 of file RecordLayer.h.
|
virtualdefault |
|
inlinestaticprivate |
Definition at line 111 of file RecordLayer.h.
References add, and folly::gen::move.
|
inlinestaticprivate |
Definition at line 116 of file RecordLayer.h.
|
pure virtual |
Returns the current encryption level of the data that the write record layer writes at.
Implemented in fizz::EncryptedWriteRecordLayer, and fizz::PlaintextWriteRecordLayer.
|
inline |
Definition at line 80 of file RecordLayer.h.
References fizz::getRealDraftVersion(), fizz::tls_1_0, fizz::tls_1_2, fizz::tls_1_3_20, fizz::tls_1_3_21, fizz::tls_1_3_22, and fizz::tls_1_3_23.
Referenced by fizz::sm::getCertificateRequest().
|
pure virtual |
|
inline |
Definition at line 65 of file RecordLayer.h.
References fizz::alert, fizz::encode(), folly::gen::move, and fizz::detail::write().
Referenced by fizz::server::detail::handleAppClose(), fizz::client::detail::handleAppClose(), fizz::server::detail::handleError(), and fizz::client::detail::handleError().
|
inline |
Definition at line 69 of file RecordLayer.h.
References fizz::application_data, testing::Args(), folly::gen::move, and fizz::detail::write().
Referenced by fizz::sm::generateTicket(), fizz::sm::getCertificateRequest(), fizz::sm::getMaxEarlyDataSize(), and fizz::sm::handleEarlyAppWrite().
|
inline |
Definition at line 74 of file RecordLayer.h.
References fizz::handshake, folly::gen::move, and fizz::detail::write().
Referenced by fizz::sm::generateTicket(), fizz::sm::getCertificateRequest(), fizz::sm::getHrrKeyExchangers(), fizz::sm::getMaxEarlyDataSize(), fizz::server::AeadCookieCipher< AeadType, HkdfType >::getStatelessResponse(), fizz::sm::handleCertMsg(), and fizz::sm::writeNewSessionTicket().
|
mutableprotected |
Definition at line 106 of file RecordLayer.h.
Referenced by fizz::EncryptedWriteRecordLayer::write().
|
mutableprotected |
Definition at line 107 of file RecordLayer.h.
Referenced by fizz::EncryptedWriteRecordLayer::write().