Function esp_idf_sys::mbedtls_ssl_send_alert_message
source ยท pub unsafe extern "C" fn mbedtls_ssl_send_alert_message(
ssl: *mut mbedtls_ssl_context,
level: c_uchar,
message: c_uchar,
) -> c_int
Expand description
\brief Send an alert message
\param ssl SSL context \param level The alert level of the message (MBEDTLS_SSL_ALERT_LEVEL_WARNING or MBEDTLS_SSL_ALERT_LEVEL_FATAL) \param message The alert message (SSL_ALERT_MSG_*)
\return 0 if successful, or a specific SSL error code.
\note If this function returns something other than 0 or MBEDTLS_ERR_SSL_WANT_READ/WRITE, you must stop using the SSL context for reading or writing, and either free it or call \c mbedtls_ssl_session_reset() on it before re-using it for a new connection; the current connection must be closed.