Home
last modified time | relevance | path

Searched refs:rl (Results 1 – 18 of 18) sorted by relevance

/openssl/ssl/record/methods/
H A Dtls_common.c383 if (!rl->read_ahead && !rl->isdtls) { in tls_default_read_n()
396 BIO *bio = rl->prev != NULL ? rl->prev : rl->bio; in tls_default_read_n()
1125 while (rl->curr_rec >= rl->num_recs) { in tls_read_record()
1143 rec = &rl->rrec[rl->curr_rec++]; in tls_read_record()
1186 if (rl->curr_rec == rl->num_released in tls_release_record()
1500 return rl->curr_rec < rl->num_recs; in tls_processed_read_pending()
1912 if (rl->nextwbuf >= rl->numwpipes) in tls_retry_write_records()
1916 thiswb = &rl->wbuf[rl->nextwbuf]; in tls_retry_write_records()
2099 if (rl->nextwbuf < rl->numwpipes) in tls_alloc_buffers()
2122 if (rl->curr_rec < rl->num_recs || TLS_BUFFER_get_left(&rl->rbuf) != 0) in tls_alloc_buffers()
[all …]
H A Ddtls_meth.c162 if (rl->use_etm && rl->md_ctx != NULL) { in dtls_process_record()
171 i = rl->funcs->mac(rl, rr, md, 0 /* not send */); in dtls_process_record()
190 enc_err = rl->funcs->cipher(rl, rr, 1, 0, &macbuf, mac_size); in dtls_process_record()
221 i = rl->funcs->mac(rl, rr, md, 0 /* not send */); in dtls_process_record()
310 memset(&rl->rrec[0], 0, sizeof(rl->rrec[0])); in dtls_rlayer_buffer_record()
391 rr = rl->rrec; in dtls_get_more_records()
412 rret = rl->funcs->read_n(rl, DTLS1_RT_HEADER_LENGTH, in dtls_get_more_records()
496 rret = rl->funcs->read_n(rl, more, more, 1, 1, &n); in dtls_get_more_records()
548 if (dtls_rlayer_buffer_record(rl, rl->unprocessed_rcds, in dtls_get_more_records()
569 if (rl->funcs->post_process_record && !rl->funcs->post_process_record(rl, rr)) { in dtls_get_more_records()
[all …]
H A Dtls13_meth.c33 rl->iv = OPENSSL_malloc(ivlen); in tls13_set_crypto_state()
34 if (rl->iv == NULL) in tls13_set_crypto_state()
38 if (rl->nonce == NULL) in tls13_set_crypto_state()
41 memcpy(rl->iv, iv, ivlen); in tls13_set_crypto_state()
45 mac = EVP_MAC_fetch(rl->libctx, "HMAC", rl->propq); in tls13_set_crypto_state()
110 staticiv = rl->iv; in tls13_cipher()
111 nonce = rl->nonce; in tls13_cipher()
131 if (rl->mac_ctx != NULL) { in tls13_cipher()
183 if (rl->mac_ctx != NULL) { in tls13_cipher()
363 padding = rl->padding(rl->cbarg, thistempl->type, rlen); in tls13_add_record_padding()
[all …]
H A Drecmethod_local.h130 int (*get_more_records)(OSSL_RECORD_LAYER *rl);
392 #define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL) argument
398 #define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \ argument
413 int tls_alloc_buffers(OSSL_RECORD_LAYER *rl);
414 int tls_free_buffers(OSSL_RECORD_LAYER *rl);
418 int tls_get_more_records(OSSL_RECORD_LAYER *rl);
419 int dtls_get_more_records(OSSL_RECORD_LAYER *rl);
448 int tls_free(OSSL_RECORD_LAYER *rl);
457 int tls_get_alert_code(OSSL_RECORD_LAYER *rl);
458 int tls_set1_bio(OSSL_RECORD_LAYER *rl, BIO *bio);
[all …]
H A Dtlsany_meth.c57 if (rl->version == TLS_ANY_VERSION) { in tls_validate_record_header()
59 if (rl->is_first_record) { in tls_validate_record_header()
66 p = rl->packet; in tls_validate_record_header()
80 RLAYERfatal(rl, SSL_AD_NO_ALERT, in tls_validate_record_header()
89 } else if (rl->version == TLS1_3_VERSION) { in tls_validate_record_header()
106 RLAYERfatal(rl, SSL_AD_NO_ALERT, in tls_validate_record_header()
113 RLAYERfatal(rl, SSL_AD_PROTOCOL_VERSION, in tls_validate_record_header()
132 if (rl->version != TLS_ANY_VERSION && rl->version != vers) in tls_any_set_protocol_version()
134 rl->version = vers; in tls_any_set_protocol_version()
171 if (rl->version != DTLS_ANY_VERSION && rl->version != vers) in dtls_any_set_protocol_version()
[all …]
H A Dtls1_meth.c41 ciph_ctx = rl->enc_ctx; in tls1_set_crypto_state()
44 if (rl->md_ctx == NULL) { in tls1_set_crypto_state()
78 rl->libctx, rl->propq, mac_key, in tls1_set_crypto_state()
193 ds = rl->enc_ctx; in tls1_cipher()
338 if (!rl->isdtls && rl->tlstree) { in tls1_cipher()
475 hash = rl->md_ctx; in tls1_mac()
482 if (rl->stream_mac) { in tls1_mac()
492 if (!rl->isdtls in tls1_mac()
493 && rl->tlstree in tls1_mac()
497 if (rl->isdtls) { in tls1_mac()
[all …]
H A Dtls_multib.c29 && rl->compctx == NULL in tls_is_multiblock_capable()
30 && rl->msg_callback == NULL in tls_is_multiblock_capable()
31 && !rl->use_etm in tls_is_multiblock_capable()
32 && RLAYER_USE_EXPLICIT_IV(rl) in tls_is_multiblock_capable()
33 && !BIO_get_ktls_send(rl->bio) in tls_is_multiblock_capable()
111 packlen = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
119 wb = &rl->wbuf[0]; in tls_write_records_multiblock_int()
122 memcpy(aad, rl->sequence, 8); in tls_write_records_multiblock_int()
132 packleni = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
145 if (EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
[all …]
H A Dktls_meth.c34 switch (rl->version) { in ktls_int_check_supported_cipher()
58 if (rl->use_etm) in ktls_int_check_supported_cipher()
134 switch (rl->version) { in ktls_int_check_supported_cipher()
320 if (BIO_flush(rl->bio) <= 0) in ktls_set_crypto_state()
324 if (rl->padding != NULL || rl->block_padding > 0) in ktls_set_crypto_state()
328 if (!ktls_configure_crypto(rl->libctx, rl->version, ciph, md, rl->sequence, in ktls_set_crypto_state()
334 if (!BIO_set_ktls(rl->bio, &crypto_info, rl->direction)) in ktls_set_crypto_state()
396 if (rl->version == TLS1_3_VERSION) in ktls_post_process_record()
457 rl->numwpipes = 1; in ktls_allocate_write_buffers()
551 return tls_alloc_buffers(rl); in ktls_alloc_buffers()
[all …]
H A Dssl3_meth.c39 ciph_ctx = rl->enc_ctx; in ssl3_set_crypto_state()
41 rl->md_ctx = EVP_MD_CTX_new(); in ssl3_set_crypto_state()
42 if (rl->md_ctx == NULL) { in ssl3_set_crypto_state()
54 rl->compctx = COMP_CTX_new(comp); in ssl3_set_crypto_state()
55 if (rl->compctx == NULL) { in ssl3_set_crypto_state()
77 if (mackeylen > sizeof(rl->mac_secret)) { in ssl3_set_crypto_state()
81 memcpy(rl->mac_secret, mackey, mackeylen); in ssl3_set_crypto_state()
113 ds = rl->enc_ctx; in ssl3_cipher()
228 mac_sec = &(rl->mac_secret[0]); in ssl3_mac()
229 hash = rl->md_ctx; in ssl3_mac()
[all …]
/openssl/ssl/quic/
H A Dquic_tls.c17 if ((rl) != NULL) (rl)->alert = (ad); \
19 if ((rl) != NULL) (rl)->qtls->inerror = 1; \
105 OSSL_RECORD_LAYER *rl = OPENSSL_zalloc(sizeof(*rl)); in quic_new_record_layer() local
122 *retrl = rl; in quic_new_record_layer()
193 quic_free(rl); in quic_new_record_layer()
199 if (rl == NULL) in quic_free()
357 return quic_write_records(rl, &rl->template, 1); in quic_retry_write_records()
365 if (rl->recread != 0 || rl->recunreleased != 0) in quic_read_record()
384 rl->recread = rl->recunreleased = *datalen; in quic_read_record()
419 || !ossl_assert(rl->recunreleased <= rl->recread) in quic_release_record()
[all …]
/openssl/include/internal/
H A Drecordmethod.h152 int (*free)(OSSL_RECORD_LAYER *rl);
155 int (*unprocessed_read_pending)(OSSL_RECORD_LAYER *rl);
161 int (*processed_read_pending)(OSSL_RECORD_LAYER *rl);
167 size_t (*app_data_pending)(OSSL_RECORD_LAYER *rl);
217 int (*retry_write_records)(OSSL_RECORD_LAYER *rl);
250 int (*get_alert_code)(OSSL_RECORD_LAYER *rl);
256 int (*set1_bio)(OSSL_RECORD_LAYER *rl, BIO *bio);
284 void (*set_in_init)(OSSL_RECORD_LAYER *rl, int in_init);
316 int (*increment_sequence_ctr)(OSSL_RECORD_LAYER *rl);
322 int (*alloc_buffers)(OSSL_RECORD_LAYER *rl);
[all …]
/openssl/ssl/record/
H A Drecord.h134 #define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra)) argument
135 #define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead) argument
137 void RECORD_LAYER_init(RECORD_LAYER *rl, SSL_CONNECTION *s);
138 int RECORD_LAYER_clear(RECORD_LAYER *rl);
139 int RECORD_LAYER_reset(RECORD_LAYER *rl);
140 int RECORD_LAYER_read_pending(const RECORD_LAYER *rl);
142 int RECORD_LAYER_write_pending(const RECORD_LAYER *rl);
143 int RECORD_LAYER_is_sslv2_record(RECORD_LAYER *rl);
151 int DTLS_RECORD_LAYER_new(RECORD_LAYER *rl);
152 void DTLS_RECORD_LAYER_free(RECORD_LAYER *rl);
[all …]
H A Drec_layer_s3.c28 rl->s = s; in RECORD_LAYER_init()
36 while (rl->curr_rec < rl->num_recs) in RECORD_LAYER_clear()
38 &(rl->tlsrecs[rl->curr_rec++]), in RECORD_LAYER_clear()
42 rl->wnum = 0; in RECORD_LAYER_clear()
56 rl->rrlmethod->free(rl->rrl); /* Ignore return value */ in RECORD_LAYER_clear()
58 rl->wrlmethod->free(rl->wrl); /* Ignore return value */ in RECORD_LAYER_clear()
63 rl->rrl = NULL; in RECORD_LAYER_clear()
66 if (rl->d) in RECORD_LAYER_clear()
102 return rl->rrlmethod->unprocessed_read_pending(rl->rrl); in RECORD_LAYER_read_pending()
108 return (rl->curr_rec < rl->num_recs) in RECORD_LAYER_processed_read_pending()
[all …]
H A Drec_layer_d1.c19 int DTLS_RECORD_LAYER_new(RECORD_LAYER *rl) in DTLS_RECORD_LAYER_new() argument
26 rl->d = d; in DTLS_RECORD_LAYER_new()
32 rl->d = NULL; in DTLS_RECORD_LAYER_new()
39 void DTLS_RECORD_LAYER_free(RECORD_LAYER *rl) in DTLS_RECORD_LAYER_free() argument
41 if (rl->d == NULL) in DTLS_RECORD_LAYER_free()
44 DTLS_RECORD_LAYER_clear(rl); in DTLS_RECORD_LAYER_free()
45 pqueue_free(rl->d->buffered_app_data); in DTLS_RECORD_LAYER_free()
46 OPENSSL_free(rl->d); in DTLS_RECORD_LAYER_free()
47 rl->d = NULL; in DTLS_RECORD_LAYER_free()
50 void DTLS_RECORD_LAYER_clear(RECORD_LAYER *rl) in DTLS_RECORD_LAYER_clear() argument
[all …]
/openssl/doc/designs/quic-design/
H A Drecord-layer.md426 int (*free)(OSSL_RECORD_LAYER *rl);
431 int (*unprocessed_read_pending)(OSSL_RECORD_LAYER *rl);
437 int (*processed_read_pending)(OSSL_RECORD_LAYER *rl);
443 size_t (*app_data_pending)(OSSL_RECORD_LAYER *rl);
493 int (*retry_write_records)(OSSL_RECORD_LAYER *rl);
524 int (*get_alert_code)(OSSL_RECORD_LAYER *rl);
530 int (*set1_bio)(OSSL_RECORD_LAYER *rl, BIO *bio);
558 void (*set_in_init)(OSSL_RECORD_LAYER *rl, int in_init);
590 int (*increment_sequence_ctr)(OSSL_RECORD_LAYER *rl);
596 int (*alloc_buffers)(OSSL_RECORD_LAYER *rl);
[all …]
/openssl/crypto/asn1/
H A Dasn1_lib.c16 static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
116 static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, in asn1_get_length() argument
153 *rl = (long)ret; in asn1_get_length()
/openssl/test/recipes/04-test_pem_reading_data/
H A Ddsa-threecolumn.pem8 rl+
/openssl/ssl/
H A Dssl_lib.c6830 RECORD_LAYER *rl; in SSL_free_buffers() local
6836 rl = &sc->rlayer; in SSL_free_buffers()
6838 return rl->rrlmethod->free_buffers(rl->rrl) in SSL_free_buffers()
6839 && rl->wrlmethod->free_buffers(rl->wrl); in SSL_free_buffers()
6844 RECORD_LAYER *rl; in SSL_alloc_buffers() local
6854 rl = &sc->rlayer; in SSL_alloc_buffers()
6856 return rl->rrlmethod->alloc_buffers(rl->rrl) in SSL_alloc_buffers()
6857 && rl->wrlmethod->alloc_buffers(rl->wrl); in SSL_alloc_buffers()

Completed in 99 milliseconds