Go to the documentation of this file.
64 #include "../crypto/internal.h"
75 if (ssl->
d1->flight_has_reply) {
81 UniquePtr<SSLAEADContext> aead_ctx,
83 assert(secret_for_quic.
empty());
97 ssl->
d1->has_change_cipher_spec = 0;
102 UniquePtr<SSLAEADContext> aead_ctx,
104 assert(secret_for_quic.
empty());
107 sizeof(ssl->
s3->write_sequence));
110 ssl->
d1->last_aead_write_ctx =
std::move(ssl->
s3->aead_write_ctx);
void ssl_send_alert(SSL *ssl, int level, int desc)
const SSL_METHOD * DTLS_client_method(void)
#define SSL_AD_UNEXPECTED_MESSAGE
const SSL_METHOD * DTLS_with_buffers_method(void)
ssl_open_record_t dtls1_open_change_cipher_spec(SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
int dtls1_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, int len)
const SSL_METHOD * DTLSv1_method(void)
bool dtls1_get_message(const SSL *ssl, SSLMessage *out)
static bool dtls1_set_read_state(SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
#define OPENSSL_PUT_ERROR(library, reason)
static const SSL_PROTOCOL_METHOD kDTLSProtocolMethod
#define SSL_R_EXCESS_HANDSHAKE_DATA
const SSL_METHOD * DTLS_method(void)
static void * OPENSSL_memset(void *dst, int c, size_t n)
const SSL_X509_METHOD ssl_noop_x509_method
void dtls1_free(SSL *ssl)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
const SSL_METHOD * DTLSv1_server_method(void)
int dtls1_flush_flight(SSL *ssl)
bool dtls1_add_message(SSL *ssl, Array< uint8_t > data)
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
static void dtls1_on_handshake_complete(SSL *ssl)
int dtls1_dispatch_alert(SSL *ssl)
BSSL_NAMESPACE_BEGIN ssl_open_record_t dtls1_open_app_data(SSL *ssl, Span< uint8_t > *out, 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)
const SSL_METHOD * DTLSv1_2_client_method(void)
static bool dtls1_set_write_state(SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
const SSL_METHOD * DTLSv1_2_server_method(void)
void dtls_clear_outgoing_messages(SSL *ssl)
bool dtls1_add_change_cipher_spec(SSL *ssl)
bool dtls_has_unprocessed_handshake_data(const SSL *ssl)
bool dtls1_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type)
void dtls1_stop_timer(SSL *ssl)
const SSL_METHOD * DTLSv1_2_method(void)
const SSL_X509_METHOD ssl_crypto_x509_method
const SSL_METHOD * DTLSv1_client_method(void)
const SSL_METHOD * DTLS_server_method(void)
void dtls1_next_message(SSL *ssl)
bool dtls1_finish_message(const SSL *ssl, CBB *cbb, Array< uint8_t > *out_msg)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:13