/* Discover whether the current connection is in the error state.  */
int ossl_statem_in_error(const SSL *ssl)
/* Discover whether the current connection is in the error state.  */
int ossl_statem_in_error(const SSL *ssl)
{
    SSL_ASSERT1(ssl);
    if (ssl->statem.state == MSG_FLOW_ERROR)
        return 1;
    return 0;
}