This could be bit risky. I would rather check against "== CF_PROTOCOL_TLS" only and add other enumerators in future if needed.