Skip to content

Commit 17c0cf3

Browse files
AdityaHPatwardhanlaukik-hase
authored andcommitted
Fix missing prototype warning when MBEDTLS_DEPRECATED_REMOVED is enabled
Added the changelog.d entry Signed-off-by: Aditya Patwardhan <[email protected]>
1 parent 91247d5 commit 17c0cf3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bugfix
2+
* Fix build error due to missing prototype
3+
warning when MBEDTLS_DEPRECATED_REMOVED is enabled

library/ssl_tls.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,6 +2309,7 @@ void mbedtls_ssl_get_dtls_srtp_negotiation_result( const mbedtls_ssl_context *ss
23092309
}
23102310
#endif /* MBEDTLS_SSL_DTLS_SRTP */
23112311

2312+
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
23122313
void mbedtls_ssl_conf_max_version( mbedtls_ssl_config *conf, int major, int minor )
23132314
{
23142315
conf->max_tls_version = (major << 8) | minor;
@@ -2318,6 +2319,7 @@ void mbedtls_ssl_conf_min_version( mbedtls_ssl_config *conf, int major, int mino
23182319
{
23192320
conf->min_tls_version = (major << 8) | minor;
23202321
}
2322+
#endif /* MBEDTLS_DEPRECATED_REMOVED */
23212323

23222324
#if defined(MBEDTLS_SSL_SRV_C)
23232325
void mbedtls_ssl_conf_cert_req_ca_list( mbedtls_ssl_config *conf,

0 commit comments

Comments
 (0)