Enumerations | Functions | Variables
handoff.cc File Reference
#include <openssl/ssl.h>
#include <openssl/bytestring.h>
#include <openssl/err.h>
#include "internal.h"
Include dependency graph for handoff.cc:

Go to the source code of this file.

Enumerations

enum  early_data_t {
  early_data_not_offered = 0, early_data_accepted = 1, early_data_rejected_hrr = 2, early_data_skipped = 3,
  early_data_max_value = early_data_skipped
}
 

Functions

static bool apply_remote_features (SSL *ssl, CBS *in)
 
static bool CopyExact (Span< uint8_t > out, const CBS *in)
 
static bool serialize_features (CBB *out)
 
bool SSL_apply_handback (SSL *ssl, Span< const uint8_t > handback)
 
bool SSL_apply_handoff (SSL *ssl, Span< const uint8_t > handoff)
 
bool SSL_decline_handoff (SSL *ssl)
 
int SSL_request_handshake_hints (SSL *ssl, const uint8_t *client_hello, size_t client_hello_len, const uint8_t *capabilities, size_t capabilities_len)
 
int SSL_serialize_capabilities (const SSL *ssl, CBB *out)
 
bool SSL_serialize_handback (const SSL *ssl, CBB *out)
 
bool SSL_serialize_handoff (const SSL *ssl, CBB *out, SSL_CLIENT_HELLO *out_hello)
 
int SSL_serialize_handshake_hints (const SSL *ssl, CBB *out)
 
int SSL_set_handshake_hints (SSL *ssl, const uint8_t *hints, size_t hints_len)
 
static bool uses_disallowed_feature (const SSL *ssl)
 

Variables

static const unsigned kCompressCertificateTag = CBS_ASN1_CONTEXT_SPECIFIC | 5
 
static const unsigned kDecryptedPSKTag = CBS_ASN1_CONTEXT_SPECIFIC | 3
 
constexpr int kHandbackVersion = 0
 
static const unsigned kHandoffTagALPS = CBS_ASN1_CONTEXT_SPECIFIC | 0
 
constexpr BSSL_NAMESPACE_BEGIN int kHandoffVersion = 0
 
static const unsigned kIgnorePSKTag = CBS_ASN1_CONTEXT_SPECIFIC | 4
 
static const unsigned kKeyShareHintTag
 
static const unsigned kServerRandomTag = CBS_ASN1_CONTEXT_SPECIFIC | 0
 
static const unsigned kSignatureHintTag
 

Enumeration Type Documentation

◆ early_data_t

Enumerator
early_data_not_offered 
early_data_accepted 
early_data_rejected_hrr 
early_data_skipped 
early_data_max_value 

Definition at line 32 of file handoff.cc.

Function Documentation

◆ apply_remote_features()

static bool apply_remote_features ( SSL ssl,
CBS in 
)
static

Definition at line 120 of file handoff.cc.

◆ CopyExact()

static bool CopyExact ( Span< uint8_t out,
const CBS in 
)
static

Definition at line 434 of file handoff.cc.

◆ serialize_features()

static bool serialize_features ( CBB out)
static

Definition at line 43 of file handoff.cc.

◆ SSL_apply_handback()

bool SSL_apply_handback ( SSL ssl,
Span< const uint8_t handback 
)

Definition at line 442 of file handoff.cc.

◆ SSL_apply_handoff()

bool SSL_apply_handoff ( SSL ssl,
Span< const uint8_t handoff 
)

Definition at line 238 of file handoff.cc.

◆ SSL_decline_handoff()

bool SSL_decline_handoff ( SSL ssl)

Definition at line 104 of file handoff.cc.

◆ SSL_request_handshake_hints()

int SSL_request_handshake_hints ( SSL ssl,
const uint8_t client_hello,
size_t  client_hello_len,
const uint8_t capabilities,
size_t  capabilities_len 
)

Definition at line 724 of file handoff.cc.

◆ SSL_serialize_capabilities()

int SSL_serialize_capabilities ( const SSL ssl,
CBB out 
)

Definition at line 713 of file handoff.cc.

◆ SSL_serialize_handback()

bool SSL_serialize_handback ( const SSL ssl,
CBB out 
)

Definition at line 279 of file handoff.cc.

◆ SSL_serialize_handoff()

bool SSL_serialize_handoff ( const SSL ssl,
CBB out,
SSL_CLIENT_HELLO out_hello 
)

Definition at line 76 of file handoff.cc.

◆ SSL_serialize_handshake_hints()

int SSL_serialize_handshake_hints ( const SSL ssl,
CBB out 
)

Definition at line 813 of file handoff.cc.

◆ SSL_set_handshake_hints()

int SSL_set_handshake_hints ( SSL ssl,
const uint8_t hints,
size_t  hints_len 
)

Definition at line 890 of file handoff.cc.

◆ uses_disallowed_feature()

static bool uses_disallowed_feature ( const SSL ssl)
static

Definition at line 233 of file handoff.cc.

Variable Documentation

◆ kCompressCertificateTag

const unsigned kCompressCertificateTag = CBS_ASN1_CONTEXT_SPECIFIC | 5
static

Definition at line 811 of file handoff.cc.

◆ kDecryptedPSKTag

const unsigned kDecryptedPSKTag = CBS_ASN1_CONTEXT_SPECIFIC | 3
static

Definition at line 809 of file handoff.cc.

◆ kHandbackVersion

constexpr int kHandbackVersion = 0
constexpr

Definition at line 26 of file handoff.cc.

◆ kHandoffTagALPS

const unsigned kHandoffTagALPS = CBS_ASN1_CONTEXT_SPECIFIC | 0
static

Definition at line 28 of file handoff.cc.

◆ kHandoffVersion

constexpr BSSL_NAMESPACE_BEGIN int kHandoffVersion = 0
constexpr

Definition at line 25 of file handoff.cc.

◆ kIgnorePSKTag

const unsigned kIgnorePSKTag = CBS_ASN1_CONTEXT_SPECIFIC | 4
static

Definition at line 810 of file handoff.cc.

◆ kKeyShareHintTag

const unsigned kKeyShareHintTag
static
Initial value:

Definition at line 805 of file handoff.cc.

◆ kServerRandomTag

const unsigned kServerRandomTag = CBS_ASN1_CONTEXT_SPECIFIC | 0
static

Definition at line 804 of file handoff.cc.

◆ kSignatureHintTag

const unsigned kSignatureHintTag
static
Initial value:

Definition at line 807 of file handoff.cc.

CBS_ASN1_CONTEXT_SPECIFIC
#define CBS_ASN1_CONTEXT_SPECIFIC
Definition: bytestring.h:194
CBS_ASN1_CONSTRUCTED
#define CBS_ASN1_CONSTRUCTED
Definition: bytestring.h:188


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