proxygen
|
#include <PlaintextRecordLayer.h>
Public Member Functions | |
~PlaintextWriteRecordLayer () override=default | |
TLSContent | write (TLSMessage &&msg) const override |
virtual TLSContent | writeInitialClientHello (Buf encodedClientHello) const |
EncryptionLevel | getEncryptionLevel () const override |
Public Member Functions inherited from fizz::WriteRecordLayer | |
virtual | ~WriteRecordLayer ()=default |
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 |
Private Member Functions | |
TLSContent | write (TLSMessage msg, ProtocolVersion recordVersion) const |
Additional Inherited Members | |
Protected Attributes inherited from fizz::WriteRecordLayer | |
ProtocolVersion | recordVersion_ {ProtocolVersion::tls_1_2} |
bool | useAdditionalData_ {true} |
Definition at line 44 of file PlaintextRecordLayer.h.
|
overridedefault |
|
overridevirtual |
Returns the current encryption level of the data that the write record layer writes at.
Implements fizz::WriteRecordLayer.
Definition at line 146 of file PlaintextRecordLayer.cpp.
References fizz::Plaintext.
|
overridevirtual |
Implements fizz::WriteRecordLayer.
Reimplemented in fizz::MockPlaintextWriteRecordLayer, and fizz::test::ConcreteWriteRecordLayer.
Definition at line 101 of file PlaintextRecordLayer.cpp.
References folly::gen::move, and fizz::detail::write().
|
private |
Definition at line 112 of file PlaintextRecordLayer.cpp.
References fizz::application_data, fizz::TLSContent::contentType, folly::IOBuf::create(), fizz::TLSContent::data, data, fizz::TLSContent::encryptionLevel, fizz::TLSMessage::fragment, fizz::kPlaintextHeaderSize, folly::gen::move, fizz::Plaintext, fizz::TLSMessage::type, uint16_t, and folly::io::detail::Writable< Derived >::writeBE().
|
virtual |
Write the initial ClientHello handshake message. This is a separate method as the record encoding can be slightly different since the version has not been negotiated yet.
Reimplemented in fizz::MockPlaintextWriteRecordLayer.
Definition at line 105 of file PlaintextRecordLayer.cpp.
References fizz::handshake, folly::gen::move, fizz::tls_1_0, and fizz::detail::write().
Referenced by fizz::sm::getCertificateRequest(), and fizz::server::test::AeadCookieCipherTest::getClientHello().