def resolve_ssl_version(candidate):
    if candidate is None:
        return PROTOCOL_SSLv23

    if isinstance(candidate, str):
        res = getattr(ssl, candidate, None)
        if res is None:
            res = getattr(ssl, 'PROTOCOL_' + candidate)
        return res

    return candidate
Test for NXDOMAIN hijaaking.
dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/util.py/resolve_ssl_version--crossover with--dataset/ETHPy150Open catap/namebench/libnamebench/health_checks.py/NameServerHealthChecks.TestNegativeResponse