Lines Matching full:s3

132   assert(!ssl->s3->aead_write_ctx->is_null_cipher());  in ssl3_write_app_data()
136 if (ssl->s3->write_shutdown != ssl_shutdown_none) { in ssl3_write_app_data()
143 assert(ssl->s3->wnum <= INT_MAX); in ssl3_write_app_data()
144 tot = ssl->s3->wnum; in ssl3_write_app_data()
145 ssl->s3->wnum = 0; in ssl3_write_app_data()
160 !ssl->server && SSL_in_early_data(ssl) && ssl->s3->hs->can_early_write; in ssl3_write_app_data()
168 ssl->s3->hs->early_data_written) { in ssl3_write_app_data()
170 ssl->session->ticket_max_early_data - ssl->s3->hs->early_data_written; in ssl3_write_app_data()
172 ssl->s3->wnum = tot; in ssl3_write_app_data()
173 ssl->s3->hs->can_early_write = false; in ssl3_write_app_data()
187 ssl->s3->wnum = tot; in ssl3_write_app_data()
192 ssl->s3->hs->early_data_written += ret; in ssl3_write_app_data()
206 if (ssl->s3->wpend_tot > (int)len || in ssl3_write_pending()
208 ssl->s3->wpend_buf != in) || in ssl3_write_pending()
209 ssl->s3->wpend_type != type) { in ssl3_write_pending()
218 ssl->s3->wpend_pending = false; in ssl3_write_pending()
219 return ssl->s3->wpend_ret; in ssl3_write_pending()
225 if (ssl->s3->wpend_pending) { in do_ssl3_write()
229 SSLBuffer *buf = &ssl->s3->write_buffer; in do_ssl3_write()
240 if (ssl->s3->pending_flight != nullptr) { in do_ssl3_write()
242 ssl->s3->pending_flight->length - ssl->s3->pending_flight_offset; in do_ssl3_write()
267 if (ssl->s3->pending_flight != nullptr) { in do_ssl3_write()
270 ssl->s3->pending_flight->data + ssl->s3->pending_flight_offset, in do_ssl3_write()
272 ssl->s3->pending_flight.reset(); in do_ssl3_write()
273 ssl->s3->pending_flight_offset = 0; in do_ssl3_write()
288 ssl->s3->key_update_pending = false; in do_ssl3_write()
292 ssl->s3->wpend_tot = len; in do_ssl3_write()
293 ssl->s3->wpend_buf = in; in do_ssl3_write()
294 ssl->s3->wpend_type = type; in do_ssl3_write()
295 ssl->s3->wpend_ret = len; in do_ssl3_write()
296 ssl->s3->wpend_pending = true; in do_ssl3_write()
306 assert(!ssl->s3->aead_read_ctx->is_null_cipher()); in ssl3_open_app_data()
341 if (body.size() > kMaxEarlyDataAccepted - ssl->s3->hs->early_data_read) { in ssl3_open_app_data()
347 ssl->s3->hs->early_data_read += body.size(); in ssl3_open_app_data()
386 if (ssl->s3->write_shutdown != ssl_shutdown_none) { in ssl_send_alert()
392 ssl->s3->write_shutdown = ssl_shutdown_close_notify; in ssl_send_alert()
396 ssl->s3->write_shutdown = ssl_shutdown_error; in ssl_send_alert()
399 ssl->s3->alert_dispatch = 1; in ssl_send_alert()
400 ssl->s3->send_alert[0] = level; in ssl_send_alert()
401 ssl->s3->send_alert[1] = desc; in ssl_send_alert()
402 if (ssl->s3->write_buffer.empty()) { in ssl_send_alert()
414 if (!ssl->quic_method->send_alert(ssl, ssl->s3->write_level, in ssl3_dispatch_alert()
415 ssl->s3->send_alert[1])) { in ssl3_dispatch_alert()
420 int ret = do_ssl3_write(ssl, SSL3_RT_ALERT, &ssl->s3->send_alert[0], 2); in ssl3_dispatch_alert()
426 ssl->s3->alert_dispatch = 0; in ssl3_dispatch_alert()
429 if (ssl->s3->send_alert[0] == SSL3_AL_FATAL) { in ssl3_dispatch_alert()
433 ssl_do_msg_callback(ssl, 1 /* write */, SSL3_RT_ALERT, ssl->s3->send_alert); in ssl3_dispatch_alert()
435 int alert = (ssl->s3->send_alert[0] << 8) | ssl->s3->send_alert[1]; in ssl3_dispatch_alert()