Home
last modified time | relevance | path

Searched refs:rbuf (Results 1 – 9 of 9) sorted by relevance

/openssl/ssl/quic/
H A Dquic_rstream.c21 struct ring_buf rbuf; member
32 ring_buf_init(&ret->rbuf); in ossl_quic_rstream_new()
33 if (!ring_buf_resize(&ret->rbuf, rbuf_size, 0)) { in ossl_quic_rstream_new()
53 ring_buf_destroy(&qrs->rbuf, cleanse); in ossl_quic_rstream_free()
100 data = ring_buf_get_ptr(&qrs->rbuf, range.start, &max_len); in read_internal()
126 ring_buf_cpop_range(&qrs->rbuf, 0, offset - 1, qrs->fl.cleanse); in read_internal()
216 record_ = ring_buf_get_ptr(&qrs->rbuf, qrs->head_range.start, in ossl_quic_rstream_get_record()
268 struct ring_buf *rbuf = cb_arg; in write_at_ring_buf_cb() local
270 return ring_buf_write_at(rbuf, logical_offset, buf, buf_len); in write_at_ring_buf_cb()
275 if (ring_buf_avail(&qrs->rbuf) == 0) in ossl_quic_rstream_move_to_rbuf()
[all …]
/openssl/crypto/bio/
H A Dbss_dgram_pair.c252 struct ring_buf rbuf; member
405 ring_buf_destroy(&b1->rbuf); in dgram_pair_ctrl_destroy_bio_pair()
420 ring_buf_destroy(&b2->rbuf); in dgram_pair_ctrl_destroy_bio_pair()
469 if (b->rbuf.start != NULL) { in dgram_pair_ctrl_set_write_buf_size()
484 ring_buf_clear(&b->rbuf); in dgram_pair_ctrl_reset()
508 saved_count = readb->rbuf.count; in dgram_pair_ctrl_pending()
512 readb->rbuf.idx[1] = saved_idx; in dgram_pair_ctrl_pending()
532 l = b->rbuf.len - b->rbuf.count; in dgram_pair_ctrl_get_write_guarantee()
1235 saved_idx = b->rbuf.idx[0]; in dgram_pair_write_actual()
1236 saved_count = b->rbuf.count; in dgram_pair_write_actual()
[all …]
/openssl/ssl/record/methods/
H A Ddtls_meth.c302 memcpy(&(rdata->rbuf), &rl->rbuf, sizeof(TLS_BUFFER)); in dtls_rlayer_buffer_record()
314 OPENSSL_free(rdata->rbuf.buf); in dtls_rlayer_buffer_record()
322 OPENSSL_free(rdata->rbuf.buf); in dtls_rlayer_buffer_record()
337 ossl_tls_buffer_release(&rl->rbuf); in dtls_copy_rlayer_record()
341 memcpy(&rl->rbuf, &(rdata->rbuf), sizeof(TLS_BUFFER)); in dtls_copy_rlayer_record()
393 if (rl->rbuf.buf == NULL) { in dtls_get_more_records()
580 TLS_BUFFER *rbuf; in dtls_free() local
586 rbuf = &rl->rbuf; in dtls_free()
588 left = rbuf->left; in dtls_free()
594 ret = BIO_write_ex(rl->next, rbuf->buf + rbuf->offset, left, &written); in dtls_free()
[all …]
H A Dtls_common.c235 b = &rl->rbuf; in tls_setup_read_buffer()
281 b = &rl->rbuf; in tls_release_read_buffer()
313 rb = &rl->rbuf; in tls_default_read_n()
464 TLS_BUFFER *rbuf; in tls_record_app_data_waiting() local
468 rbuf = &rl->rbuf; in tls_record_app_data_waiting()
549 TLS_BUFFER *rbuf; in tls_get_more_records() local
561 rbuf = &rl->rbuf; in tls_get_more_records()
562 if (rbuf->buf == NULL) { in tls_get_more_records()
1471 TLS_BUFFER *rbuf; in tls_free() local
1478 rbuf = &rl->rbuf; in tls_free()
[all …]
H A Drecmethod_local.h252 TLS_BUFFER rbuf; member
378 TLS_BUFFER rbuf; member
/openssl/crypto/err/
H A Derr_blocks.c64 char *rbuf = NULL; in ERR_vset_error() local
84 && (rbuf = OPENSSL_realloc(buf, ERR_MAX_DATA_SIZE)) != NULL) { in ERR_vset_error()
85 buf = rbuf; in ERR_vset_error()
103 if ((rbuf = OPENSSL_realloc(buf, printed_len + 1)) != NULL) { in ERR_vset_error()
104 buf = rbuf; in ERR_vset_error()
/openssl/test/
H A Dsslbuffertest.c53 return rrl->rbuf.buf != NULL && wrl->wbuf[0].buf != NULL; in checkbuffers()
55 return rrl->rbuf.buf == NULL && wrl->wbuf[0].buf == NULL; in checkbuffers()
H A Dacvp_test.c239 unsigned char *rbuf = NULL, *sbuf = NULL; in get_ecdsa_sig_rs_bytes() local
253 rbuf = OPENSSL_zalloc(r1_len); in get_ecdsa_sig_rs_bytes()
255 if (rbuf == NULL || sbuf == NULL) in get_ecdsa_sig_rs_bytes()
257 if (BN_bn2binpad(r1, rbuf, r1_len) <= 0) in get_ecdsa_sig_rs_bytes()
261 *r = rbuf; in get_ecdsa_sig_rs_bytes()
268 OPENSSL_free(rbuf); in get_ecdsa_sig_rs_bytes()
761 rbuf = OPENSSL_zalloc(r1_len); in get_dsa_sig_rs_bytes()
763 if (rbuf == NULL || sbuf == NULL) in get_dsa_sig_rs_bytes()
765 if (BN_bn2binpad(r1, rbuf, r1_len) <= 0) in get_dsa_sig_rs_bytes()
769 *r = rbuf; in get_dsa_sig_rs_bytes()
[all …]
/openssl/
H A DCHANGES.md10080 * In ssl3_clear, preserve s3->init_extra along with s3->rbuf.

Completed in 64 milliseconds