Since version 2.22 mbedtls_ssl_get_max_frag_len is no longer supported. Yet mbedtls_ssl_get_max_out_record_payload has been supported since 2.13 and is available in 3.x. Uodated the compile time check to version 2.13 to use the new api for all the new versions maintaining backward compatibility.
Added compile time gate for mbedTLS library version log for the configs that don't have MBEDTLS_VERSION_C enabled.
mbedtls_ssl_get_max_frag_len
is no longer supported. Yetmbedtls_ssl_get_max_out_record_payload
has been supported since 2.13 and is available in 3.x. Uodated the compile time check to version 2.13 to use the new api for all the new versions maintaining backward compatibility.MBEDTLS_VERSION_C
enabled.