Skip to content

Commit

Permalink
Fix server mode only build of v3.6 with MBEDTLS_SSL_CLI_C unset (fixes
Browse files Browse the repository at this point in the history
…Mbed-TLS#9186)

Signed-off-by: Michael Schuster <michael@schuster.ms>
  • Loading branch information
misch7 authored and minosgalanakis committed Aug 6, 2024
1 parent 095cf69 commit c9184fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.d/fix-server-mode-only-build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix
* Fix server mode only build when MBEDTLS_SSL_SRV_C is enabled but
MBEDTLS_SSL_CLI_C is disabled. Reported by M-Bab on GitHub in #9186.
2 changes: 1 addition & 1 deletion library/ssl_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ int mbedtls_ssl_psk_derive_premaster(mbedtls_ssl_context *ssl,
#endif /* MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED */

#if defined(MBEDTLS_SSL_HANDSHAKE_WITH_PSK_ENABLED)
#if defined(MBEDTLS_SSL_CLI_C)
#if defined(MBEDTLS_SSL_CLI_C) || defined(MBEDTLS_SSL_SRV_C)
MBEDTLS_CHECK_RETURN_CRITICAL
int mbedtls_ssl_conf_has_static_psk(mbedtls_ssl_config const *conf);
#endif
Expand Down

0 comments on commit c9184fe

Please sign in to comment.