Fix missing prototype warning when MBEDTLS_DEPRECATED_REMOVED is

enabled

Added the changelog.d entry

Signed-off-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
This commit is contained in:
Aditya Patwardhan 2022-07-26 14:31:46 +05:30
parent 78ddc3e8fc
commit 3096f331ee
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,3 @@
Bugfix
* Fix build error due to missing prototype
warning when MBEDTLS_DEPRECATED_REMOVED is enabled

View file

@ -2502,6 +2502,7 @@ void mbedtls_ssl_get_dtls_srtp_negotiation_result( const mbedtls_ssl_context *ss
} }
#endif /* MBEDTLS_SSL_DTLS_SRTP */ #endif /* MBEDTLS_SSL_DTLS_SRTP */
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
void mbedtls_ssl_conf_max_version( mbedtls_ssl_config *conf, int major, int minor ) void mbedtls_ssl_conf_max_version( mbedtls_ssl_config *conf, int major, int minor )
{ {
conf->max_tls_version = (major << 8) | minor; conf->max_tls_version = (major << 8) | minor;
@ -2511,6 +2512,7 @@ void mbedtls_ssl_conf_min_version( mbedtls_ssl_config *conf, int major, int mino
{ {
conf->min_tls_version = (major << 8) | minor; conf->min_tls_version = (major << 8) | minor;
} }
#endif /* MBEDTLS_DEPRECATED_REMOVED */
#if defined(MBEDTLS_SSL_SRV_C) #if defined(MBEDTLS_SSL_SRV_C)
void mbedtls_ssl_conf_cert_req_ca_list( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_cert_req_ca_list( mbedtls_ssl_config *conf,