int OSSL_trace_enabled(int category)
{
    int ret = 0;
#ifndef OPENSSL_NO_TRACE
    category = ossl_trace_get_category(category);
    ret = trace_channels[category].bio != NULL;
#endif
    return ret;
}
['int OSSL_trace_enabled(int category)\n{\n    int ret = 0;\n#ifndef OPENSSL_NO_TRACE\n    category = ossl_trace_get_category(category);\n    ret = trace_channels[category].bio != NULL;\n#endif\n    return ret;\n}', 'static int ossl_trace_get_category(int category)\n{\n    if (category < 0 || category >= OSSL_TRACE_CATEGORY_NUM)\n        return -1;\n    if (trace_channels[category].bio != NULL)\n        return category;\n    return OSSL_TRACE_CATEGORY_ANY;\n}']