Lines Matching refs:ver_max
101 int i, ver_min, ver_max, ok = 0; in tls_setup_handshake() local
108 if (ssl_get_min_max_version(s, &ver_min, &ver_max, NULL) != 0) { in tls_setup_handshake()
117 if (DTLS_VERSION_GE(ver_max, c->min_dtls) && in tls_setup_handshake()
118 DTLS_VERSION_LE(ver_max, c->max_dtls)) in tls_setup_handshake()
120 } else if (ver_max >= c->min_tls && ver_max <= c->max_tls) { in tls_setup_handshake()
1900 int ret, ver_min, ver_max, real_max, origv; in ssl_choose_client_version() local
1947 ret = ssl_get_min_max_version(s, &ver_min, &ver_max, &real_max); in ssl_choose_client_version()
1960 } else if (SSL_IS_DTLS(s) ? DTLS_VERSION_GT(s->version, ver_max) in ssl_choose_client_version()
1961 : s->version > ver_max) { in ssl_choose_client_version()
1969 real_max = ver_max; in ssl_choose_client_version()
2143 int ver_min, ver_max, ret; in ssl_set_client_hello_version() local
2152 ret = ssl_get_min_max_version(s, &ver_min, &ver_max, NULL); in ssl_set_client_hello_version()
2157 s->version = ver_max; in ssl_set_client_hello_version()
2160 if (!SSL_IS_DTLS(s) && ver_max > TLS1_2_VERSION) in ssl_set_client_hello_version()
2161 ver_max = TLS1_2_VERSION; in ssl_set_client_hello_version()
2163 s->client_version = ver_max; in ssl_set_client_hello_version()