Home
last modified time | relevance | path

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

/third_party/mbedtls/programs/ssl/
Dssl_client2.c519 unsigned char mfl_code; /* code for maximum fragment length */ member
941 opt.mfl_code = DFL_MFL_CODE; in main()
1289 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_512; in main()
1291 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_1024; in main()
1293 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_2048; in main()
1295 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_4096; in main()
1838 if ((ret = mbedtls_ssl_conf_max_frag_len(&conf, opt.mfl_code)) != 0) { in main()
Dssl_context_info.c326 const char *get_mfl_str(int mfl_code) in get_mfl_str() argument
328 switch (mfl_code) { in get_mfl_str()
Dssl_server2.c663 unsigned char mfl_code; /* code for maximum fragment length */ member
1726 opt.mfl_code = DFL_MFL_CODE; in main()
2076 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_512; in main()
2078 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_1024; in main()
2080 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_2048; in main()
2082 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_4096; in main()
2824 if ((ret = mbedtls_ssl_conf_max_frag_len(&conf, opt.mfl_code)) != 0) { in main()
/third_party/mbedtls/include/mbedtls/
Dssl.h1185 unsigned char MBEDTLS_PRIVATE(mfl_code); /*!< MaxFragmentLength negotiated by peer */
1349 uint8_t MBEDTLS_PRIVATE(mfl_code); /*!< desired fragment length indicator
4235 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code);
/third_party/mbedtls/library/
Dssl_tls.c3156 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code) in mbedtls_ssl_conf_max_frag_len() argument
3158 if (mfl_code >= MBEDTLS_SSL_MAX_FRAG_LEN_INVALID || in mbedtls_ssl_conf_max_frag_len()
3159 ssl_mfl_code_to_length(mfl_code) > MBEDTLS_TLS_EXT_ADV_CONTENT_LEN) { in mbedtls_ssl_conf_max_frag_len()
3163 conf->mfl_code = mfl_code; in mbedtls_ssl_conf_max_frag_len()
3336 return ssl_mfl_code_to_length(ssl->conf->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3342 read_mfl = ssl_mfl_code_to_length(ssl->session_out->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3350 read_mfl = ssl_mfl_code_to_length(ssl->session_negotiate->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3366 max_len = ssl_mfl_code_to_length(ssl->conf->mfl_code); in mbedtls_ssl_get_output_max_frag_len()
3370 ssl_mfl_code_to_length(ssl->session_out->mfl_code) < max_len) { in mbedtls_ssl_get_output_max_frag_len()
3371 max_len = ssl_mfl_code_to_length(ssl->session_out->mfl_code); in mbedtls_ssl_get_output_max_frag_len()
[all …]
Dssl_tls12_client.c272 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE) { in ssl_write_max_fragment_length_ext()
287 *p++ = ssl->conf->mfl_code; in ssl_write_max_fragment_length_ext()
668 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE || in ssl_parse_max_fragment_length_ext()
670 buf[0] != ssl->conf->mfl_code) { in ssl_parse_max_fragment_length_ext()
Dssl_tls12_server.c355 ssl->session_negotiate->mfl_code = buf[0]; in ssl_parse_max_fragment_length_ext()
1867 if (ssl->session_negotiate->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE) { in ssl_write_max_fragment_length_ext()
1880 *p++ = ssl->session_negotiate->mfl_code; in ssl_write_max_fragment_length_ext()
/third_party/mbedtls/tests/src/test_helpers/
Dssl_helpers.c1528 session->mfl_code = 1; in mbedtls_test_ssl_tls12_populate_session()
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function2186 TEST_ASSERT(original.mfl_code == restored.mfl_code);