mbedtls/programs/ssl
Hanno Becker 9752aadd85 Make query API for state of MFL extension internal
This commit makes the API

- mbedtls_ssl_get_output_max_frag_len()
- mbedtls_ssl_get_input_max_frag_len()
- mbedtls_ssl_get__max_frag_len()

for querying the state of the Maximum Fragment Length
extension internal.

Rationale: The value those APIs provide to the user is in
upper bounds for the size of incoming and outgoing records,
which can be used to size application data buffers apporpriately
before passing them to mbedtls_ssl_{read,write}(). However,
there are other factors which influence such upper bounds,
such as the MTU or other extensions (specifically, the
record_size_limit extension which is still to be implemented)
which should be taken into account.

There should be more general APIs for querying the maximum
size of incoming and outgoing records.

For the maximum size of outgoing records, we already have such,
namely mbedtls_ssl_get_max_out_record_payload().

For the maximum size of incoming records, a new API will be
added in a subsequent commit.

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
2021-05-23 06:03:55 +01:00
..
CMakeLists.txt Remove PKCS#11 library wrapper. 2021-04-21 11:05:00 +02:00
dtls_client.c Rename MBEDTLS_X509_INFO to !MBEDTLS_X509_REMOVE_INFO 2021-04-27 17:18:52 +01:00
dtls_server.c Merge remote-tracking branch 'origin/development' into development_new 2021-04-07 16:31:09 +01:00
mini_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_client1.c Rename MBEDTLS_X509_INFO to !MBEDTLS_X509_REMOVE_INFO 2021-04-27 17:18:52 +01:00
ssl_client2.c Make query API for state of MFL extension internal 2021-05-23 06:03:55 +01:00
ssl_context_info.c Add missing MBEDTLS_X509_REMOVE_INFO guards in ssl_context_info.c 2021-04-27 17:20:56 +01:00
ssl_fork_server.c Remove certs module from mbedtls. 2021-03-16 15:51:25 +01:00
ssl_mail_client.c Rename MBEDTLS_X509_INFO to !MBEDTLS_X509_REMOVE_INFO 2021-04-27 17:18:52 +01:00
ssl_pthread_server.c Merge remote-tracking branch 'origin/development' into development_new 2021-04-07 16:31:09 +01:00
ssl_server.c Remove certs module from mbedtls. 2021-03-16 15:51:25 +01:00
ssl_server2.c Make query API for state of MFL extension internal 2021-05-23 06:03:55 +01:00
ssl_test_common_source.c Merge branch 'development' into convert_NO_SHA384_to_positive 2021-05-20 14:18:12 +02:00
ssl_test_lib.c Detect and report mutex usage errors in SSL test programs 2021-02-22 19:24:03 +01:00
ssl_test_lib.h Merge remote-tracking branch 'origin/development' into development_new 2021-04-07 16:31:09 +01:00