Lines Matching refs:proto_version
2949 _ssl__SSLContext_impl(PyTypeObject *type, int proto_version) in _ssl__SSLContext_impl() argument
2962 if (proto_version == PY_SSL_VERSION_TLS1) in _ssl__SSLContext_impl()
2965 else if (proto_version == PY_SSL_VERSION_TLS1_1) in _ssl__SSLContext_impl()
2967 else if (proto_version == PY_SSL_VERSION_TLS1_2) in _ssl__SSLContext_impl()
2971 else if (proto_version == PY_SSL_VERSION_SSL3) in _ssl__SSLContext_impl()
2975 else if (proto_version == PY_SSL_VERSION_SSL2) in _ssl__SSLContext_impl()
2978 else if (proto_version == PY_SSL_VERSION_TLS) /* SSLv23 */ in _ssl__SSLContext_impl()
2980 else if (proto_version == PY_SSL_VERSION_TLS_CLIENT) in _ssl__SSLContext_impl()
2982 else if (proto_version == PY_SSL_VERSION_TLS_SERVER) in _ssl__SSLContext_impl()
2985 proto_version = -1; in _ssl__SSLContext_impl()
2988 if (proto_version == -1) { in _ssl__SSLContext_impl()
3006 self->protocol = proto_version; in _ssl__SSLContext_impl()
3017 if (proto_version == PY_SSL_VERSION_TLS_CLIENT) { in _ssl__SSLContext_impl()
3032 if (proto_version != PY_SSL_VERSION_SSL2) in _ssl__SSLContext_impl()
3034 if (proto_version != PY_SSL_VERSION_SSL3) in _ssl__SSLContext_impl()
3054 if (proto_version != PY_SSL_VERSION_SSL2) { in _ssl__SSLContext_impl()