Searched refs:mfl_code (Results 1 – 9 of 9) sorted by relevance
519 unsigned char mfl_code; /* code for maximum fragment length */ member941 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()
326 const char *get_mfl_str(int mfl_code) in get_mfl_str() argument328 switch (mfl_code) { in get_mfl_str()
663 unsigned char mfl_code; /* code for maximum fragment length */ member1726 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()
1185 unsigned char MBEDTLS_PRIVATE(mfl_code); /*!< MaxFragmentLength negotiated by peer */1349 uint8_t MBEDTLS_PRIVATE(mfl_code); /*!< desired fragment length indicator4235 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code);
3156 int mbedtls_ssl_conf_max_frag_len(mbedtls_ssl_config *conf, unsigned char mfl_code) in mbedtls_ssl_conf_max_frag_len() argument3158 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 …]
272 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()
355 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()
1528 session->mfl_code = 1; in mbedtls_test_ssl_tls12_populate_session()
2186 TEST_ASSERT(original.mfl_code == restored.mfl_code);