#include <openssl/ssl.h>
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "../crypto/internal.h"
#include "internal.h"
BSSL_NAMESPACE_BEGIN
static_assert …;
static_assert …;
void SSLBuffer::Clear() { … }
bool SSLBuffer::EnsureCap(size_t header_len, size_t new_cap) { … }
void SSLBuffer::DidWrite(size_t new_size) { … }
void SSLBuffer::Consume(size_t len) { … }
void SSLBuffer::DiscardConsumed() { … }
static int dtls_read_buffer_next_packet(SSL *ssl) { … }
static int tls_read_buffer_extend_to(SSL *ssl, size_t len) { … }
int ssl_read_buffer_extend_to(SSL *ssl, size_t len) { … }
int ssl_handle_open_record(SSL *ssl, bool *out_retry, ssl_open_record_t ret,
size_t consumed, uint8_t alert) { … }
static_assert …;
static_assert …;
static int tls_write_buffer_flush(SSL *ssl) { … }
static int dtls_write_buffer_flush(SSL *ssl) { … }
int ssl_write_buffer_flush(SSL *ssl) { … }
BSSL_NAMESPACE_END