Home
last modified time | relevance | path

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

/openthread-3.7.0/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c508 unsigned char mfl_code; /* code for maximum fragment length */ member
956 opt.mfl_code = DFL_MFL_CODE; in main()
1349 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_512; in main()
1351 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_1024; in main()
1353 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_2048; in main()
1355 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_4096; in main()
1859 if ((ret = mbedtls_ssl_conf_max_frag_len(&conf, opt.mfl_code)) != 0) { in main()
Dssl_context_info.c313 const char *get_mfl_str(int mfl_code) in get_mfl_str() argument
315 switch (mfl_code) { in get_mfl_str()
Dssl_server2.c658 unsigned char mfl_code; /* code for maximum fragment length */ member
1736 opt.mfl_code = DFL_MFL_CODE; in main()
2138 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_512; in main()
2140 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_1024; in main()
2142 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_2048; in main()
2144 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_4096; in main()
2845 if ((ret = mbedtls_ssl_conf_max_frag_len(&conf, opt.mfl_code)) != 0) { in main()
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dssl.h1233 unsigned char MBEDTLS_PRIVATE(mfl_code); /*!< MaxFragmentLength negotiated by peer */
1432 uint8_t MBEDTLS_PRIVATE(mfl_code); /*!< desired fragment length indicator
4443 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code);
/openthread-3.7.0/third_party/mbedtls/repo/library/
Dssl_tls.c2964 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code) in mbedtls_ssl_conf_max_frag_len() argument
2966 if (mfl_code >= MBEDTLS_SSL_MAX_FRAG_LEN_INVALID || in mbedtls_ssl_conf_max_frag_len()
2967 ssl_mfl_code_to_length(mfl_code) > MBEDTLS_TLS_EXT_ADV_CONTENT_LEN) { in mbedtls_ssl_conf_max_frag_len()
2971 conf->mfl_code = mfl_code; in mbedtls_ssl_conf_max_frag_len()
3169 return ssl_mfl_code_to_length(ssl->conf->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3175 read_mfl = ssl_mfl_code_to_length(ssl->session_out->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3183 read_mfl = ssl_mfl_code_to_length(ssl->session_negotiate->mfl_code); in mbedtls_ssl_get_input_max_frag_len()
3199 max_len = ssl_mfl_code_to_length(ssl->conf->mfl_code); in mbedtls_ssl_get_output_max_frag_len()
3203 ssl_mfl_code_to_length(ssl->session_out->mfl_code) < max_len) { in mbedtls_ssl_get_output_max_frag_len()
3204 max_len = ssl_mfl_code_to_length(ssl->session_out->mfl_code); in mbedtls_ssl_get_output_max_frag_len()
[all …]
Dssl_tls12_client.c268 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE) { in ssl_write_max_fragment_length_ext()
283 *p++ = ssl->conf->mfl_code; in ssl_write_max_fragment_length_ext()
665 if (ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE || in ssl_parse_max_fragment_length_ext()
667 buf[0] != ssl->conf->mfl_code) { in ssl_parse_max_fragment_length_ext()
Dssl_tls12_server.c351 ssl->session_negotiate->mfl_code = buf[0]; in ssl_parse_max_fragment_length_ext()
1870 if (ssl->session_negotiate->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE) { in ssl_write_max_fragment_length_ext()
1883 *p++ = ssl->session_negotiate->mfl_code; in ssl_write_max_fragment_length_ext()
/openthread-3.7.0/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c1773 session->mfl_code = 1; in mbedtls_test_ssl_tls12_populate_session()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ssl.function2075 TEST_ASSERT(original.mfl_code == restored.mfl_code);