/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 198 num += sc->rlayer.rrlmethod->app_data_pending(sc->rlayer.rrl); in ssl3_pending() 225 if (sc->rlayer.rrlmethod == NULL || sc->rlayer.rrl == NULL) in SSL_rstate_string_long() 228 sc->rlayer.rrlmethod->get_state(sc->rlayer.rrl, NULL, &lng); in SSL_rstate_string_long() 241 if (sc->rlayer.rrlmethod == NULL || sc->rlayer.rrl == NULL) in SSL_rstate_string() 244 sc->rlayer.rrlmethod->get_state(sc->rlayer.rrl, &shrt, NULL); in SSL_rstate_string() 297 && (len < (s->rlayer.wnum + s->rlayer.wpend_tot)))) { in ssl3_write_bytes() 561 s->rlayer.rrlmethod->release_record(s->rlayer.rrl, in ssl_release_record() 685 if (s->rlayer.curr_rec >= s->rlayer.num_recs) { in ssl3_read_bytes() 686 s->rlayer.curr_rec = s->rlayer.num_recs = 0; in ssl3_read_bytes() 688 rr = &s->rlayer.tlsrecs[s->rlayer.num_recs]; in ssl3_read_bytes() [all …]
|
H A D | rec_layer_d1.c | 145 if (s->rlayer.curr_rec < s->rlayer.num_recs) in dtls_unbuffer_record() 153 s->rlayer.num_recs = 1; in dtls_unbuffer_record() 247 if (sc->rlayer.curr_rec >= sc->rlayer.num_recs) { in dtls1_read_bytes() 248 sc->rlayer.curr_rec = sc->rlayer.num_recs = 0; in dtls1_read_bytes() 250 rr = &sc->rlayer.tlsrecs[sc->rlayer.num_recs]; in dtls1_read_bytes() 253 sc->rlayer.rrlmethod->read_record(sc->rlayer.rrl, in dtls1_read_bytes() 271 } while (sc->rlayer.rrlmethod->processed_read_pending(sc->rlayer.rrl) in dtls1_read_bytes() 274 rr = &sc->rlayer.tlsrecs[sc->rlayer.curr_rec]; in dtls1_read_bytes() 513 if (!sc->rlayer.rrlmethod->unprocessed_read_pending(sc->rlayer.rrl)) { in dtls1_read_bytes() 549 if (!sc->rlayer.rrlmethod->unprocessed_read_pending(sc->rlayer.rrl)) { in dtls1_read_bytes() [all …]
|
/openssl/ssl/ |
H A D | s3_msg.c | 67 if (!RECORD_LAYER_write_pending(&s->rlayer)) { in ssl3_send_alert() 88 if (sc->rlayer.wrlmethod == NULL) { in ssl3_dispatch_alert() 106 if (RECORD_LAYER_write_pending(&sc->rlayer)) { in ssl3_dispatch_alert() 118 sc->rlayer.wrlmethod->retry_write_records(sc->rlayer.wrl)); in ssl3_dispatch_alert() 123 sc->rlayer.wpend_tot = 0; in ssl3_dispatch_alert() 129 sc->rlayer.wrlmethod->write_records(sc->rlayer.wrl, &templ, 1)); in ssl3_dispatch_alert() 133 sc->rlayer.wpend_tot = templ.buflen; in ssl3_dispatch_alert() 134 sc->rlayer.wpend_type = templ.type; in ssl3_dispatch_alert() 135 sc->rlayer.wpend_buf = templ.buf; in ssl3_dispatch_alert()
|
H A D | ssl_lib.c | 1516 sc->rlayer.rrlmethod->set1_bio(sc->rlayer.rrl, sc->rbio); in SSL_set0_rbio() 1546 sc->rlayer.wrlmethod->set1_bio(sc->rlayer.wrl, sc->wbio); in SSL_set0_wbio() 1876 sc->rlayer.rrlmethod->set_options(sc->rlayer.rrl, options); in SSL_set_read_ahead() 5223 return sc->rlayer.wrlmethod->get_compression(sc->rlayer.wrl); in SSL_get_current_compression() 5237 return sc->rlayer.rrlmethod->get_compression(sc->rlayer.rrl); in SSL_get_current_expansion() 5261 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in ssl_init_wbio_buffer() 5273 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in ssl_free_wbio_buffer() 6187 sc->rlayer.rrlmethod->set_options(sc->rlayer.rrl, options); in SSL_set_options() 6188 sc->rlayer.wrlmethod->set_options(sc->rlayer.wrl, options); in SSL_set_options() 6218 sc->rlayer.rrlmethod->set_options(sc->rlayer.rrl, options); in SSL_clear_options() [all …]
|
H A D | d1_lib.c | 72 if (!DTLS_RECORD_LAYER_new(&s->rlayer)) { in dtls1_new() 137 && s->rlayer.wrl != frag->msg_header.saved_retransmit_state.wrl) { in dtls1_clear_sent_buffer() 164 DTLS_RECORD_LAYER_free(&s->rlayer); in dtls1_free() 184 DTLS_RECORD_LAYER_clear(&s->rlayer); in dtls1_clear() 802 s->rlayer.wrlmethod->increment_sequence_ctr(s->rlayer.wrl); in DTLSv1_listen() 823 if (BIO_write(s->rlayer.rrlnext, buf, n) != n) { in DTLSv1_listen()
|
H A D | tls13_enc.c | 720 s->rlayer.wrlmethod->set_plain_alerts(s->rlayer.wrl, 1); in tls13_change_cipher_state() 722 s->rlayer.wrlmethod->set_plain_alerts(s->rlayer.wrl, 0); in tls13_change_cipher_state()
|
H A D | s3_lib.c | 4647 if (!RECORD_LAYER_read_pending(&sc->rlayer) in ssl3_renegotiate_check() 4648 && !RECORD_LAYER_write_pending(&sc->rlayer) in ssl3_renegotiate_check()
|
H A D | ssl_local.h | 1748 RECORD_LAYER rlayer; member
|
/openssl/ssl/statem/ |
H A D | statem_dtls.c | 132 overhead = s->rlayer.wrlmethod->get_max_record_overhead(s->rlayer.wrl); in dtls1_do_write() 873 if (frag_len > s->rlayer.tlsrecs[s->rlayer.curr_rec].length) { in dtls_get_reassembled_message() 1157 frag->msg_header.saved_retransmit_state.wrlmethod = s->rlayer.wrlmethod; in dtls1_buffer_message() 1158 frag->msg_header.saved_retransmit_state.wrl = s->rlayer.wrl; in dtls1_buffer_message() 1221 saved_state.wrlmethod = s->rlayer.wrlmethod; in dtls1_retransmit_message() 1222 saved_state.wrl = s->rlayer.wrl; in dtls1_retransmit_message() 1227 s->rlayer.wrlmethod = frag->msg_header.saved_retransmit_state.wrlmethod; in dtls1_retransmit_message() 1228 s->rlayer.wrl = frag->msg_header.saved_retransmit_state.wrl; in dtls1_retransmit_message() 1234 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in dtls1_retransmit_message() 1240 s->rlayer.wrlmethod = saved_state.wrlmethod; in dtls1_retransmit_message() [all …]
|
H A D | statem.c | 205 if (s->rlayer.rrlmethod != NULL && s->rlayer.rrlmethod->set_in_init != NULL) in ossl_statem_set_in_init() 206 s->rlayer.rrlmethod->set_in_init(s->rlayer.rrl, init); in ossl_statem_set_in_init()
|
H A D | statem_lib.c | 710 if (RECORD_LAYER_processed_read_pending(&s->rlayer)) { in tls_process_key_update() 848 if (s->rlayer.rrlmethod->set_plain_alerts != NULL) in tls_process_finished() 849 s->rlayer.rrlmethod->set_plain_alerts(s->rlayer.rrl, 0); in tls_process_finished() 864 && RECORD_LAYER_processed_read_pending(&s->rlayer)) { in tls_process_finished() 949 && s->rlayer.rrlmethod->set_first_handshake != NULL) in tls_process_finished() 950 s->rlayer.rrlmethod->set_first_handshake(s->rlayer.rrl, 0); in tls_process_finished() 1612 if (RECORD_LAYER_is_sslv2_record(&s->rlayer)) { in tls_get_message_header() 1620 l = s->rlayer.tlsrecs[0].length + SSL3_HM_HEADER_LENGTH; in tls_get_message_header() 1681 if (RECORD_LAYER_is_sslv2_record(&s->rlayer)) { in tls_get_message_body()
|
H A D | statem_srvr.c | 980 if (s->rlayer.rrlmethod->set_plain_alerts != NULL) in ossl_statem_server_post_work() 981 s->rlayer.rrlmethod->set_plain_alerts(s->rlayer.rrl, 1); in ossl_statem_server_post_work() 1504 clienthello->isv2 = RECORD_LAYER_is_sslv2_record(&s->rlayer); in tls_process_client_hello() 1752 && RECORD_LAYER_processed_read_pending(&s->rlayer)) { in tls_early_post_process_client_hello() 3619 if (s->rlayer.rrlmethod->set_plain_alerts != NULL) in tls_process_client_certificate() 3620 s->rlayer.rrlmethod->set_plain_alerts(s->rlayer.rrl, 0); in tls_process_client_certificate() 4395 if (RECORD_LAYER_processed_read_pending(&s->rlayer)) { in tls_process_end_of_early_data()
|
H A D | extensions.c | 1767 s->rlayer.rrlmethod->set_max_frag_len(s->rlayer.rrl, in final_maxfragmentlen() 1769 s->rlayer.wrlmethod->set_max_frag_len(s->rlayer.wrl, in final_maxfragmentlen()
|
H A D | statem_clnt.c | 1592 if (RECORD_LAYER_processed_read_pending(&s->rlayer)) { in tls_process_server_hello() 1839 s->rlayer.wrlmethod->set_protocol_version(s->rlayer.wrl, TLS1_3_VERSION); in tls_process_as_hello_retry_request()
|
/openssl/test/ |
H A D | sslbuffertest.c | 49 OSSL_RECORD_LAYER *rrl = sc->rlayer.rrl; in checkbuffers() 50 OSSL_RECORD_LAYER *wrl = sc->rlayer.wrl; in checkbuffers()
|
H A D | sslapitest.c | 1049 memcpy(crec_wseq_before, &clientsc->rlayer.wrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1050 memcpy(srec_wseq_before, &serversc->rlayer.wrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1051 memcpy(crec_rseq_before, &clientsc->rlayer.rrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1052 memcpy(srec_rseq_before, &serversc->rlayer.rrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1072 memcpy(crec_wseq_after, &clientsc->rlayer.wrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1073 memcpy(srec_wseq_after, &serversc->rlayer.wrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1074 memcpy(crec_rseq_after, &clientsc->rlayer.rrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1075 memcpy(srec_rseq_after, &serversc->rlayer.rrl->sequence, SEQ_NUM_SIZE); in ping_pong_query() 1777 rr = serversc->rlayer.tlsrecs; in execute_cleanse_plaintext()
|
/openssl/include/openssl/ |
H A D | ssl.h.in | 1103 * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you
|