Searched refs:mfl_code (Results 1 – 9 of 9) sorted by relevance
508 unsigned char mfl_code; /* code for maximum fragment length */ member956 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()
313 const char *get_mfl_str(int mfl_code) in get_mfl_str() argument315 switch (mfl_code) { in get_mfl_str()
658 unsigned char mfl_code; /* code for maximum fragment length */ member1736 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()
1233 unsigned char MBEDTLS_PRIVATE(mfl_code); /*!< MaxFragmentLength negotiated by peer */1432 uint8_t MBEDTLS_PRIVATE(mfl_code); /*!< desired fragment length indicator4443 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code);
2964 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code) in mbedtls_ssl_conf_max_frag_len() argument2966 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 …]
268 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()
351 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()
1773 session->mfl_code = 1; in mbedtls_test_ssl_tls12_populate_session()
2075 TEST_ASSERT(original.mfl_code == restored.mfl_code);