Classes | Functions
s3_both.cc File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <tuple>
#include <openssl/buf.h>
#include <openssl/bytestring.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/mem.h>
#include <openssl/md5.h>
#include <openssl/nid.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
#include "../crypto/internal.h"
#include "internal.h"
Include dependency graph for s3_both.cc:

Go to the source code of this file.

Classes

class  CipherScorer
 

Functions

static BSSL_NAMESPACE_BEGIN bool add_record_to_flight (SSL *ssl, uint8_t type, Span< const uint8_t > in)
 
static bool parse_message (const SSL *ssl, SSLMessage *out, size_t *out_bytes_needed)
 
static ssl_open_record_t read_v2_client_hello (SSL *ssl, size_t *out_consumed, Span< const uint8_t > in)
 
const SSL_CIPHERssl_choose_tls13_cipher (CBS cipher_suites, uint16_t version, uint16_t group_id)
 
bool tls_add_change_cipher_spec (SSL *ssl)
 
bool tls_add_message (SSL *ssl, Array< uint8_t > msg)
 
bool tls_append_handshake_data (SSL *ssl, Span< const uint8_t > data)
 
bool tls_can_accept_handshake_data (const SSL *ssl, uint8_t *out_alert)
 
bool tls_finish_message (const SSL *ssl, CBB *cbb, Array< uint8_t > *out_msg)
 
int tls_flush_flight (SSL *ssl)
 
bool tls_flush_pending_hs_data (SSL *ssl)
 
bool tls_get_message (const SSL *ssl, SSLMessage *out)
 
bool tls_has_unprocessed_handshake_data (const SSL *ssl)
 
bool tls_init_message (const SSL *ssl, CBB *cbb, CBB *body, uint8_t type)
 
void tls_next_message (SSL *ssl)
 
ssl_open_record_t tls_open_handshake (SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
 

Function Documentation

◆ add_record_to_flight()

static BSSL_NAMESPACE_BEGIN bool add_record_to_flight ( SSL ssl,
uint8_t  type,
Span< const uint8_t in 
)
static

Definition at line 137 of file s3_both.cc.

◆ parse_message()

static bool parse_message ( const SSL ssl,
SSLMessage out,
size_t *  out_bytes_needed 
)
static

Definition at line 477 of file s3_both.cc.

◆ read_v2_client_hello()

static ssl_open_record_t read_v2_client_hello ( SSL ssl,
size_t *  out_consumed,
Span< const uint8_t in 
)
static

Definition at line 355 of file s3_both.cc.

◆ ssl_choose_tls13_cipher()

const SSL_CIPHER* ssl_choose_tls13_cipher ( CBS  cipher_suites,
uint16_t  version,
uint16_t  group_id 
)

Definition at line 694 of file s3_both.cc.

◆ tls_add_change_cipher_spec()

bool tls_add_change_cipher_spec ( SSL ssl)

Definition at line 266 of file s3_both.cc.

◆ tls_add_message()

bool tls_add_message ( SSL ssl,
Array< uint8_t msg 
)

Definition at line 188 of file s3_both.cc.

◆ tls_append_handshake_data()

bool tls_append_handshake_data ( SSL ssl,
Span< const uint8_t data 
)

Definition at line 552 of file s3_both.cc.

◆ tls_can_accept_handshake_data()

bool tls_can_accept_handshake_data ( const SSL ssl,
uint8_t out_alert 
)

Definition at line 519 of file s3_both.cc.

◆ tls_finish_message()

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

Definition at line 184 of file s3_both.cc.

◆ tls_flush_flight()

int tls_flush_flight ( SSL ssl)

Definition at line 284 of file s3_both.cc.

◆ tls_flush_pending_hs_data()

bool tls_flush_pending_hs_data ( SSL ssl)

Definition at line 244 of file s3_both.cc.

◆ tls_get_message()

bool tls_get_message ( const SSL ssl,
SSLMessage out 
)

Definition at line 505 of file s3_both.cc.

◆ tls_has_unprocessed_handshake_data()

bool tls_has_unprocessed_handshake_data ( const SSL ssl)

Definition at line 539 of file s3_both.cc.

◆ tls_init_message()

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

Definition at line 171 of file s3_both.cc.

◆ tls_next_message()

void tls_next_message ( SSL ssl)

Definition at line 640 of file s3_both.cc.

◆ tls_open_handshake()

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

Definition at line 561 of file s3_both.cc.



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