mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 22:45:22 +00:00
Rename pend_alert_msg -> pending_fatal_alert_msg
This commit is contained in:
parent
d829d0fbd0
commit
c8f529995f
|
@ -1235,7 +1235,7 @@ struct mbedtls_ssl_context
|
||||||
{
|
{
|
||||||
const mbedtls_ssl_config *conf; /*!< configuration information */
|
const mbedtls_ssl_config *conf; /*!< configuration information */
|
||||||
|
|
||||||
unsigned char pend_alert_msg;
|
unsigned char pending_fatal_alert_msg;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous
|
* Miscellaneous
|
||||||
|
|
|
@ -1736,14 +1736,14 @@ static inline unsigned int mbedtls_ssl_conf_get_ems_enforced(
|
||||||
* The check for pending alerts must be done manually. Currently,
|
* The check for pending alerts must be done manually. Currently,
|
||||||
* it happens only during the handshake loop.
|
* it happens only during the handshake loop.
|
||||||
*
|
*
|
||||||
* This function must not be called multiple times without manually
|
* This function must not be called multiple times without
|
||||||
* inspecting and clearing ssl->pending_fatal_alert_msg in between.
|
* manually inspecting and clearing ssl->pending_fatal_alert_msg in between.
|
||||||
*/
|
*/
|
||||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_ssl_pend_fatal_alert(
|
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_ssl_pend_fatal_alert(
|
||||||
mbedtls_ssl_context *ssl,
|
mbedtls_ssl_context *ssl,
|
||||||
unsigned char message )
|
unsigned char message )
|
||||||
{
|
{
|
||||||
ssl->pend_alert_msg = message;
|
ssl->pending_fatal_alert_msg = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ssl_internal.h */
|
#endif /* ssl_internal.h */
|
||||||
|
|
|
@ -7974,7 +7974,7 @@ int mbedtls_ssl_setup( mbedtls_ssl_context *ssl,
|
||||||
if( ( ret = ssl_handshake_init( ssl ) ) != 0 )
|
if( ( ret = ssl_handshake_init( ssl ) ) != 0 )
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
ssl->pend_alert_msg = MBEDTLS_SSL_ALERT_MSG_NONE;
|
ssl->pending_fatal_alert_msg = MBEDTLS_SSL_ALERT_MSG_NONE;
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
|
@ -9828,12 +9828,12 @@ int mbedtls_ssl_handshake_step( mbedtls_ssl_context *ssl )
|
||||||
ret = mbedtls_ssl_handshake_server_step( ssl );
|
ret = mbedtls_ssl_handshake_server_step( ssl );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( ssl->pend_alert_msg != MBEDTLS_SSL_ALERT_MSG_NONE )
|
if( ssl->pending_fatal_alert_msg != MBEDTLS_SSL_ALERT_MSG_NONE )
|
||||||
{
|
{
|
||||||
mbedtls_ssl_send_alert_message( ssl,
|
mbedtls_ssl_send_alert_message( ssl,
|
||||||
MBEDTLS_SSL_ALERT_LEVEL_FATAL,
|
MBEDTLS_SSL_ALERT_LEVEL_FATAL,
|
||||||
ssl->pend_alert_msg );
|
ssl->pending_fatal_alert_msg );
|
||||||
ssl->pend_alert_msg = MBEDTLS_SSL_ALERT_MSG_NONE;
|
ssl->pending_fatal_alert_msg = MBEDTLS_SSL_ALERT_MSG_NONE;
|
||||||
}
|
}
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue