Enumerations | Functions | Variables
d1_both.cc File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/mem.h>
#include <openssl/rand.h>
#include "../crypto/internal.h"
#include "internal.h"
Include dependency graph for d1_both.cc:

Go to the source code of this file.

Enumerations

enum  seal_result_t { seal_error, seal_no_progress, seal_partial, seal_success }
 

Functions

static bool add_outgoing (SSL *ssl, bool is_ccs, Array< uint8_t > data)
 
static uint8_t bit_range (size_t start, size_t end)
 
bool dtls1_add_change_cipher_spec (SSL *ssl)
 
bool dtls1_add_message (SSL *ssl, Array< uint8_t > data)
 
bool dtls1_finish_message (const SSL *ssl, CBB *cbb, Array< uint8_t > *out_msg)
 
int dtls1_flush_flight (SSL *ssl)
 
static hm_fragmentdtls1_get_incoming_message (SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr)
 
bool dtls1_get_message (const SSL *ssl, SSLMessage *out)
 
static void dtls1_hm_fragment_mark (hm_fragment *frag, size_t start, size_t end)
 
static UniquePtr< hm_fragmentdtls1_hm_fragment_new (const struct hm_header_st *msg_hdr)
 
bool dtls1_init_message (const SSL *ssl, CBB *cbb, CBB *body, uint8_t type)
 
static bool dtls1_is_current_message_complete (const SSL *ssl)
 
unsigned int dtls1_min_mtu (void)
 
void dtls1_next_message (SSL *ssl)
 
ssl_open_record_t dtls1_open_change_cipher_spec (SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
 
ssl_open_record_t dtls1_open_handshake (SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
 
bool dtls1_parse_fragment (CBS *cbs, struct hm_header_st *out_hdr, CBS *out_body)
 
int dtls1_retransmit_outgoing_messages (SSL *ssl)
 
static void dtls1_update_mtu (SSL *ssl)
 
void dtls_clear_outgoing_messages (SSL *ssl)
 
bool dtls_has_unprocessed_handshake_data (const SSL *ssl)
 
static enum seal_result_t seal_next_message (SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, const DTLS_OUTGOING_MESSAGE *msg)
 
static bool seal_next_packet (SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out)
 
static int send_flight (SSL *ssl)
 
static bool ssl_size_t_greater_than_32_bits (size_t v)
 

Variables

static const unsigned int kDefaultMTU = 1500 - 28
 
static const BSSL_NAMESPACE_BEGIN unsigned int kMinMTU = 256 - 28
 

Enumeration Type Documentation

◆ seal_result_t

Enumerator
seal_error 
seal_no_progress 
seal_partial 
seal_success 

Definition at line 620 of file d1_both.cc.

Function Documentation

◆ add_outgoing()

static bool add_outgoing ( SSL ssl,
bool  is_ccs,
Array< uint8_t data 
)
static

Definition at line 550 of file d1_both.cc.

◆ bit_range()

static uint8_t bit_range ( size_t  start,
size_t  end 
)
static

Definition at line 202 of file d1_both.cc.

◆ dtls1_add_change_cipher_spec()

bool dtls1_add_change_cipher_spec ( SSL ssl)

Definition at line 595 of file d1_both.cc.

◆ dtls1_add_message()

bool dtls1_add_message ( SSL ssl,
Array< uint8_t data 
)

Definition at line 591 of file d1_both.cc.

◆ dtls1_finish_message()

bool dtls1_finish_message ( const SSL ssl,
CBB cbb,
Array< uint8_t > *  out_msg 
)

Definition at line 520 of file d1_both.cc.

◆ dtls1_flush_flight()

int dtls1_flush_flight ( SSL ssl)

Definition at line 813 of file d1_both.cc.

◆ dtls1_get_incoming_message()

static hm_fragment* dtls1_get_incoming_message ( SSL ssl,
uint8_t out_alert,
const struct hm_header_st msg_hdr 
)
static

Definition at line 264 of file d1_both.cc.

◆ dtls1_get_message()

bool dtls1_get_message ( const SSL ssl,
SSLMessage out 
)

Definition at line 407 of file d1_both.cc.

◆ dtls1_hm_fragment_mark()

static void dtls1_hm_fragment_mark ( hm_fragment frag,
size_t  start,
size_t  end 
)
static

Definition at line 210 of file d1_both.cc.

◆ dtls1_hm_fragment_new()

static UniquePtr<hm_fragment> dtls1_hm_fragment_new ( const struct hm_header_st msg_hdr)
static

Definition at line 151 of file d1_both.cc.

◆ dtls1_init_message()

bool dtls1_init_message ( const SSL ssl,
CBB cbb,
CBB body,
uint8_t  type 
)

Definition at line 506 of file d1_both.cc.

◆ dtls1_is_current_message_complete()

static bool dtls1_is_current_message_complete ( const SSL ssl)
static

Definition at line 254 of file d1_both.cc.

◆ dtls1_min_mtu()

unsigned int dtls1_min_mtu ( void  )

Definition at line 831 of file d1_both.cc.

◆ dtls1_next_message()

void dtls1_next_message ( SSL ssl)

Definition at line 425 of file d1_both.cc.

◆ dtls1_open_change_cipher_spec()

ssl_open_record_t dtls1_open_change_cipher_spec ( SSL ssl,
size_t *  out_consumed,
uint8_t out_alert,
Span< uint8_t in 
)

Definition at line 470 of file d1_both.cc.

◆ dtls1_open_handshake()

ssl_open_record_t dtls1_open_handshake ( SSL ssl,
size_t *  out_consumed,
uint8_t out_alert,
Span< uint8_t in 
)

Definition at line 296 of file d1_both.cc.

◆ dtls1_parse_fragment()

bool dtls1_parse_fragment ( CBS cbs,
struct hm_header_st out_hdr,
CBS out_body 
)

Definition at line 454 of file d1_both.cc.

◆ dtls1_retransmit_outgoing_messages()

int dtls1_retransmit_outgoing_messages ( SSL ssl)

Definition at line 820 of file d1_both.cc.

◆ dtls1_update_mtu()

static void dtls1_update_mtu ( SSL ssl)
static

Definition at line 601 of file d1_both.cc.

◆ dtls_clear_outgoing_messages()

void dtls_clear_outgoing_messages ( SSL ssl)

Definition at line 495 of file d1_both.cc.

◆ dtls_has_unprocessed_handshake_data()

bool dtls_has_unprocessed_handshake_data ( const SSL ssl)

Definition at line 439 of file d1_both.cc.

◆ seal_next_message()

static enum seal_result_t seal_next_message ( SSL ssl,
uint8_t out,
size_t *  out_len,
size_t  max_out,
const DTLS_OUTGOING_MESSAGE msg 
)
static

Definition at line 630 of file d1_both.cc.

◆ seal_next_packet()

static bool seal_next_packet ( SSL ssl,
uint8_t out,
size_t *  out_len,
size_t  max_out 
)
static

Definition at line 725 of file d1_both.cc.

◆ send_flight()

static int send_flight ( SSL ssl)
static

Definition at line 768 of file d1_both.cc.

◆ ssl_size_t_greater_than_32_bits()

static bool ssl_size_t_greater_than_32_bits ( size_t  v)
static

Definition at line 538 of file d1_both.cc.

Variable Documentation

◆ kDefaultMTU

const unsigned int kDefaultMTU = 1500 - 28
static

Definition at line 141 of file d1_both.cc.

◆ kMinMTU

const BSSL_NAMESPACE_BEGIN unsigned int kMinMTU = 256 - 28
static

Definition at line 137 of file d1_both.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:09