mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-07 15:36:29 +00:00
Merge pull request #4918 from yuhaoth/pr/add-send-alert-message-macro
Add send alert message macro
This commit is contained in:
commit
45cb82fac4
4 changed files with 90 additions and 0 deletions
|
|
@ -1526,6 +1526,19 @@ struct mbedtls_ssl_context
|
|||
int MBEDTLS_PRIVATE(keep_current_message); /*!< drop or reuse current message
|
||||
on next call to record layer? */
|
||||
|
||||
/* The following three variables indicate if and, if yes,
|
||||
* what kind of alert is pending to be sent.
|
||||
*/
|
||||
unsigned char MBEDTLS_PRIVATE(send_alert); /*!< Determines if a fatal alert
|
||||
should be sent. Values:
|
||||
- \c 0 , no alert is to be sent.
|
||||
- \c 1 , alert is to be sent. */
|
||||
unsigned char MBEDTLS_PRIVATE(alert_type); /*!< Type of alert if send_alert
|
||||
!= 0 */
|
||||
int MBEDTLS_PRIVATE(alert_reason); /*!< The error code to be returned
|
||||
to the user once the fatal alert
|
||||
has been sent. */
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_DTLS)
|
||||
uint8_t MBEDTLS_PRIVATE(disable_datagram_packing); /*!< Disable packing multiple records
|
||||
* within a single datagram. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue