/openssl/ssl/record/ |
H A D | rec_layer_s3.c | 119 uint32_t max_early_data; in ossl_get_max_early_data() local 137 max_early_data = sess->ext.max_early_data; in ossl_get_max_early_data() 139 max_early_data = s->recv_max_early_data; in ossl_get_max_early_data() 141 max_early_data = s->recv_max_early_data < sess->ext.max_early_data in ossl_get_max_early_data() 144 return max_early_data; in ossl_get_max_early_data() 150 uint32_t max_early_data; in ossl_early_data_count_ok() local 152 max_early_data = ossl_get_max_early_data(s); in ossl_early_data_count_ok() 154 if (max_early_data == 0) { in ossl_early_data_count_ok() 161 max_early_data += overhead; in ossl_early_data_count_ok() 1257 uint32_t max_early_data; in ssl_set_new_record_layer() local [all …]
|
/openssl/ssl/ |
H A D | ssl_asn1.c | 43 uint32_t max_early_data; member 76 ASN1_EXP_OPT_EMBED(SSL_SESSION_ASN1, max_early_data, ZUINT32, 15), 204 as.max_early_data = in->ext.max_early_data; in i2d_SSL_SESSION() 397 ret->ext.max_early_data = as->max_early_data; in d2i_SSL_SESSION_ex()
|
H A D | tls13_enc.c | 509 && s->max_early_data > 0 in tls13_change_cipher_state() 510 && s->session->ext.max_early_data == 0) { in tls13_change_cipher_state() 517 && s->max_early_data == in tls13_change_cipher_state() 518 s->psksession->ext.max_early_data)) { in tls13_change_cipher_state() 889 if (!s->server && s->max_early_data > 0 in tls13_export_keying_material_early() 890 && s->session->ext.max_early_data == 0) in tls13_export_keying_material_early()
|
H A D | ssl_txt.c | 158 (unsigned int)x->ext.max_early_data) <= 0) in SSL_SESSION_print()
|
H A D | ssl_sess.c | 1050 return s->ext.max_early_data; in SSL_SESSION_get_max_early_data() 1053 int SSL_SESSION_set_max_early_data(SSL_SESSION *s, uint32_t max_early_data) in SSL_SESSION_set_max_early_data() argument 1055 s->ext.max_early_data = max_early_data; in SSL_SESSION_set_max_early_data()
|
H A D | t1_trce.c | 748 uint32_t max_early_data; in ssl_print_extension() local 925 max_early_data = ((unsigned int)ext[0] << 24) in ssl_print_extension() 930 BIO_printf(bio, "max_early_data=%u\n", (unsigned int)max_early_data); in ssl_print_extension()
|
H A D | ssl_lib.c | 763 s->max_early_data = ctx->max_early_data; in ossl_ssl_connection_new_int() 2673 || ((sc->session == NULL || sc->session->ext.max_early_data == 0) in SSL_write_early_data() 4181 ret->max_early_data = 0; in SSL_CTX_new_ex() 4667 || (s->max_early_data > 0 in ssl_update_cache() 7126 int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data) in SSL_CTX_set_max_early_data() argument 7128 ctx->max_early_data = max_early_data; in SSL_CTX_set_max_early_data() 7135 return ctx->max_early_data; in SSL_CTX_get_max_early_data() 7138 int SSL_set_max_early_data(SSL *s, uint32_t max_early_data) in SSL_set_max_early_data() argument 7145 sc->max_early_data = max_early_data; in SSL_set_max_early_data() 7157 return sc->max_early_data; in SSL_get_max_early_data()
|
H A D | ssl_local.h | 541 uint32_t max_early_data; member 1113 uint32_t max_early_data; member 1763 uint32_t max_early_data; member
|
/openssl/ssl/statem/ |
H A D | extensions_clnt.c | 864 || (s->session->ext.max_early_data == 0 in tls_construct_ctos_early_data() 866 s->max_early_data = 0; in tls_construct_ctos_early_data() 869 edsess = s->session->ext.max_early_data != 0 ? s->session : psksess; in tls_construct_ctos_early_data() 870 s->max_early_data = edsess->ext.max_early_data; in tls_construct_ctos_early_data() 1990 unsigned long max_early_data; in tls_parse_stoc_early_data() local 1992 if (!PACKET_get_net_4(pkt, &max_early_data) in tls_parse_stoc_early_data() 1998 s->session->ext.max_early_data = max_early_data; in tls_parse_stoc_early_data() 2000 if (SSL_IS_QUIC_HANDSHAKE(s) && max_early_data != 0xffffffff) { in tls_parse_stoc_early_data() 2011 s->session->ext.max_early_data = 1; in tls_parse_stoc_early_data() 2082 || s->session->ext.max_early_data > 0 in tls_parse_stoc_psk() [all …]
|
H A D | extensions_srvr.c | 1150 || (s->max_early_data > 0 in tls_parse_ctos_psk() 1172 if (s->max_early_data > 0 in tls_parse_ctos_psk() 1936 if (s->max_early_data == 0) in tls_construct_stoc_early_data() 1941 || !WPACKET_put_bytes_u32(pkt, s->max_early_data) in tls_construct_stoc_early_data()
|
H A D | extensions.c | 1568 && s->session->ext.max_early_data == 0 in tls_psk_do_binder() 1569 && sess->ext.max_early_data > 0) in tls_psk_do_binder() 1737 if (s->max_early_data == 0 in final_early_data()
|
H A D | statem_srvr.c | 4249 s->session->ext.max_early_data = s->max_early_data; in tls_construct_new_session_ticket() 4265 || (s->max_early_data > 0 in tls_construct_new_session_ticket()
|
H A D | statem_clnt.c | 808 && s->max_early_data > 0) { in ossl_statem_client_post_work() 844 && s->max_early_data > 0) { in ossl_statem_client_post_work()
|
/openssl/doc/man3/ |
H A D | SSL_read_early_data.pod | 27 int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data); 29 int SSL_set_max_early_data(SSL *s, uint32_t max_early_data); 38 int SSL_SESSION_set_max_early_data(SSL_SESSION *s, uint32_t max_early_data); 198 object respectively. The B<max_early_data> parameter specifies the maximum 220 max_early_data for the session and the recv_max_early_data setting for the 223 The configured value for max_early_data on a server may change over time as 225 max_early_data value. The recv_max_early_data should always be equal to or 226 higher than any recently configured max_early_data value in order to avoid 228 the current configured max_early_data value.
|
H A D | SSL_CTX_set_options.pod | 233 By default, when a server is configured for early data (i.e., max_early_data > 0),
|
/openssl/ssl/quic/ |
H A D | quic_tls.c | 871 uint32_t max_early_data = SSL_get0_session(qtls->args.s)->ext.max_early_data; in ossl_quic_tls_has_bad_max_early_data() local 878 return max_early_data != 0xffffffff && max_early_data != 0; in ossl_quic_tls_has_bad_max_early_data()
|
H A D | quic_tserver.c | 574 uint32_t max_early_data) in ossl_quic_tserver_set_max_early_data() argument 576 return SSL_set_max_early_data(srv->tls, max_early_data); in ossl_quic_tserver_set_max_early_data()
|
/openssl/include/internal/ |
H A D | quic_tserver.h | 212 uint32_t max_early_data);
|
/openssl/ssl/record/methods/ |
H A D | tls_common.c | 500 uint32_t max_early_data = rl->max_early_data; in rlayer_early_data_count_ok() local 502 if (max_early_data == 0) { in rlayer_early_data_count_ok() 509 max_early_data += overhead; in rlayer_early_data_count_ok() 511 if (rl->early_data_count + length > max_early_data) { in rlayer_early_data_count_ok() 1290 if (!OSSL_PARAM_get_uint32(p, &rl->max_early_data)) { in tls_int_new_record_layer()
|
H A D | recmethod_local.h | 318 uint32_t max_early_data; member
|
/openssl/apps/ |
H A D | s_server.c | 1085 int max_early_data = -1, recv_max_early_data = -1; in s_server_main() local 1656 max_early_data = atoi(opt_arg()); in s_server_main() 1657 if (max_early_data < 0) { in s_server_main() 1671 if (max_early_data == -1) in s_server_main() 1672 max_early_data = SSL3_RT_MAX_PLAIN_LENGTH; in s_server_main() 2302 if (max_early_data >= 0) in s_server_main() 2303 SSL_CTX_set_max_early_data(ctx, max_early_data); in s_server_main()
|
/openssl/doc/man1/ |
H A D | openssl-s_server.pod.in | 139 [B<-max_early_data> I<int>] 823 =item B<-max_early_data> I<int>
|
/openssl/include/openssl/ |
H A D | ssl.h.in | 947 int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data); 949 int SSL_set_max_early_data(SSL *s, uint32_t max_early_data); 1719 uint32_t max_early_data);
|