1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00

log read encryption level

Reviewed By: kvtsoy

Differential Revision: D72985344

fbshipit-source-id: 5476a824ab826927fdd41ab889d48e18e3d1f8bb
This commit is contained in:
Paul Farcasanu 2025-04-14 20:42:36 -07:00 committed by Facebook GitHub Bot
parent 2a20187408
commit a801a8351c
3 changed files with 7 additions and 1 deletions

View File

@ -2043,6 +2043,10 @@ size_t QuicClientTransportLite::getAppDataReadBufferSize() const {
return clientConn_->clientHandshakeLayer->getAppDataReadBufferSize();
}
EncryptionLevel QuicClientTransportLite::getReadEncryptionLevel() const {
return clientConn_->clientHandshakeLayer->getReadRecordLayerEncryptionLevel();
}
const std::shared_ptr<const folly::AsyncTransportCertificate>
QuicClientTransportLite::getPeerCertificate() const {
const auto clientHandshakeLayer = clientConn_->clientHandshakeLayer;

View File

@ -246,6 +246,7 @@ class QuicClientTransportLite
size_t getInitialReadBufferSize() const;
size_t getHandshakeReadBufferSize() const;
size_t getAppDataReadBufferSize() const;
EncryptionLevel getReadEncryptionLevel() const;
const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const override;

View File

@ -126,6 +126,8 @@ class ClientHandshake : public Handshake {
size_t getHandshakeReadBufferSize() const;
size_t getAppDataReadBufferSize() const;
virtual EncryptionLevel getReadRecordLayerEncryptionLevel() = 0;
virtual const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const = 0;
@ -188,7 +190,6 @@ class ClientHandshake : public Handshake {
virtual Optional<CachedServerTransportParameters> connectImpl(
Optional<std::string> hostname) = 0;
virtual EncryptionLevel getReadRecordLayerEncryptionLevel() = 0;
virtual void processSocketData(folly::IOBufQueue& queue) = 0;
virtual bool matchEarlyParameters() = 0;
virtual std::unique_ptr<Aead> buildAead(