Function esp_idf_hal::sys::mbedtls_ssl_close_notify
source ยท pub unsafe extern "C" fn mbedtls_ssl_close_notify(
ssl: *mut mbedtls_ssl_context,
) -> i32
Expand description
\brief Notify the peer that the connection is being closed
\param ssl SSL context
\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.