mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 22:45:22 +00:00
Note that mbedtls_ssl_pend_fatal_alert() must only be called once
This commit is contained in:
parent
2e8d133ebf
commit
eeabfa460c
|
@ -1730,6 +1730,15 @@ static inline unsigned int mbedtls_ssl_conf_get_ems_enforced(
|
||||||
#define MBEDTLS_ALWAYS_INLINE
|
#define MBEDTLS_ALWAYS_INLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This internal function can be used to pend a fatal alert for
|
||||||
|
* later delivery.
|
||||||
|
*
|
||||||
|
* The check for pending alerts must be done manually. Currently,
|
||||||
|
* it happens only during the handshake loop.
|
||||||
|
*
|
||||||
|
* This function must not be called multiple times without manually
|
||||||
|
* 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 int mbedtls_ssl_pend_fatal_alert(
|
||||||
mbedtls_ssl_context *ssl,
|
mbedtls_ssl_context *ssl,
|
||||||
unsigned char message )
|
unsigned char message )
|
||||||
|
|
Loading…
Reference in a new issue