int tls_valid_group(SSL *s, uint16_t group_id, int version)
{
    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(group_id);
    if (version < TLS1_3_VERSION) {
        if ((ginfo->flags & TLS_GROUP_ONLY_FOR_TLS1_3) != 0)
            return 0;
    }
    return 1;
}
['int tls_valid_group(SSL *s, uint16_t group_id, int version)\n{\n    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(group_id);\n    if (version < TLS1_3_VERSION) {\n        if ((ginfo->flags & TLS_GROUP_ONLY_FOR_TLS1_3) != 0)\n            return 0;\n    }\n    return 1;\n}', 'const TLS_GROUP_INFO *tls1_group_id_lookup(uint16_t group_id)\n{\n#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_EC)\n    size_t i;\n    for (i = 0; i < OSSL_NELEM(nid_list); i++) {\n        if (nid_list[i].group_id == group_id)\n            return &nid_list[i];\n    }\n#endif\n    return NULL;\n}']