mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-02 20:36:20 +00:00
Fix compile guard for static function in ssl
The guard for the definition of the function was different from the guard on its only use - make it the same. This has been caught by tests/scripts/key-exchanges.pl. It had not been caught by this script in earlier CI runs, because previously USE_PSA_CRYPTO was disabled in the builds used by this script; enabling it uncovered the issue.
This commit is contained in:
parent
971dea3745
commit
45be3d8136
|
@ -729,7 +729,7 @@ static void ssl_calc_finished_tls_sha384( mbedtls_ssl_context *, unsigned char *
|
||||||
#endif
|
#endif
|
||||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED) && \
|
#if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) && \
|
||||||
defined(MBEDTLS_USE_PSA_CRYPTO)
|
defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
|
static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
|
||||||
{
|
{
|
||||||
|
@ -749,7 +749,7 @@ static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO &&
|
#endif /* MBEDTLS_USE_PSA_CRYPTO &&
|
||||||
MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
|
MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_EXPORT_KEYS)
|
#if defined(MBEDTLS_SSL_EXPORT_KEYS)
|
||||||
static mbedtls_tls_prf_types tls_prf_get_type( mbedtls_ssl_tls_prf_cb *tls_prf )
|
static mbedtls_tls_prf_types tls_prf_get_type( mbedtls_ssl_tls_prf_cb *tls_prf )
|
||||||
|
|
Loading…
Reference in a new issue