src/nc_connection.c
/*
 * Returns true if the connection is authenticated or doesn't require
 * authentication, otherwise return false
 */
Returns true if the connection is authenticated or doesn't require
authentication, otherwise return false
Returns true if the connection is authenticated or doesn ' t require authentication otherwise return false
bool
conn_authenticated(struct conn *conn)
{
    struct server_pool *pool;
    ASSERT(!conn->proxy);
    pool = conn->client ? conn->owner : ((struct server *)conn->owner)->owner;
    if (!pool->require_auth) {
        return true;
    }
    if (!conn->authenticated) {
        return false;
    }
    return true;
}
bool conn_authenticated ( struct conn * conn ) { struct server_pool * pool ; ASSERT ( ! conn -> proxy ) ; pool = conn -> client ? conn -> owner : ( ( struct server * ) conn -> owner ) -> owner ; if ( ! pool -> require_auth ) { return true ; } if ( ! conn -> authenticated ) { return false ; } return true ; }
Returns true if the connection is authenticated or doesn't require
 authentication, otherwise return false
Returns true if the connection is authenticated or doesn ' t require authentication otherwise return false