mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 02:54:20 +01:00
Remove return value from mbedtls_ssl_pend_fatal_alert()
This function is often called when there's already an error code to handle, and one of the reasons to introduce the pending of alerts was to _not_ have another potential error code to take care of. Reflect this by making `void` the return type of `mbedtls_ssl_pend_fatal_alert()`.
This commit is contained in:
parent
eeabfa460c
commit
d829d0fbd0
@ -1739,12 +1739,11 @@ static inline unsigned int mbedtls_ssl_conf_get_ems_enforced(
|
|||||||
* This function must not be called multiple times without manually
|
* This function must not be called multiple times without manually
|
||||||
* inspecting and clearing ssl->pending_fatal_alert_msg in between.
|
* inspecting and clearing ssl->pending_fatal_alert_msg in between.
|
||||||
*/
|
*/
|
||||||
MBEDTLS_ALWAYS_INLINE static inline int 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->pend_alert_msg = message;
|
||||||
return( 0 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ssl_internal.h */
|
#endif /* ssl_internal.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user