Go to the documentation of this file.
124 #include "../crypto/internal.h"
131 size_t *out_consumed,
uint8_t *out_alert,
156 msg_hdr.
seq == ssl->
d1->handshake_read_seq - 1) {
181 if (record.
empty()) {
192 *out_needs_handshake =
false;
228 assert(
buf->empty());
235 size_t ciphertext_len;
243 buf->DidWrite(ciphertext_len);
258 ssl->
s3->alert_dispatch =
false;
267 int alert = (ssl->
s3->send_alert[0] << 8) | ssl->
s3->send_alert[1];
#define SSL_R_BAD_HANDSHAKE_RECORD
#define SSL_R_DTLS_MESSAGE_TOO_BIG
#define SSL_AD_UNEXPECTED_MESSAGE
bool dtls1_check_timeout_num(SSL *ssl)
int dtls1_write_record(SSL *ssl, int type, const uint8_t *in, size_t len, enum dtls1_use_epoch_t use_epoch)
int dtls1_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, int len)
bool dtls1_parse_fragment(CBS *cbs, struct hm_header_st *out_hdr, CBS *out_body)
#define OPENSSL_PUT_ERROR(library, reason)
#define SSL_max_seal_overhead
void ssl_do_msg_callback(const SSL *ssl, int is_write, int content_type, Span< const uint8_t > in)
#define SSL_CB_WRITE_ALERT
#define SSL3_RT_MAX_PLAIN_LENGTH
@ ssl_open_record_discard
#define SSL_R_UNEXPECTED_RECORD
int dtls1_retransmit_outgoing_messages(SSL *ssl)
bssl::UniquePtr< BIO > wbio
#define BSSL_NAMESPACE_END
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)
#define ERR_R_INTERNAL_ERROR
bool dtls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, uint8_t type, const uint8_t *in, size_t in_len, enum dtls1_use_epoch_t use_epoch)
size_t ssl_seal_align_prefix_len(const SSL *ssl)
#define SSL3_RT_HANDSHAKE
@ ssl_open_record_success
#define SSL_AD_DECODE_ERROR
UniquePtr< SSL_SESSION > ret
@ dtls1_use_current_epoch
enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type, Span< uint8_t > *out, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
int ssl_write_buffer_flush(SSL *ssl)
void ssl_do_info_callback(const SSL *ssl, int type, int value)
#define SSL3_RT_APPLICATION_DATA
#define SSL_R_PROTOCOL_IS_SHUTDOWN
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:08