Add mbedtls_ssl_get_max_frag_len()

This is not very useful for TLS as mbedtls_ssl_write() will automatically
fragment and return the length used, and the application should check for that
anyway, but this is useful for DTLS where mbedtls_ssl_write() returns an
error, and the application needs to be able to query the maximum length
instead of just guessing.
This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-31 18:30:52 +02:00
parent 7b23c51595
commit a2cda6bfaf
6 changed files with 69 additions and 17 deletions

View file

@ -37,6 +37,8 @@ Changes
compiler's command line.
* Prepend a "thread identifier" to debug messages (issue pointed out by
Hugo Leisink) (#210).
* Add mbedtls_ssl_get_max_frag_len() to query the current maximum fragment
length.
= mbed TLS 2.0.0 released 2015-07-13