Lines Matching refs:ver_max
141 int ver_min, ver_max, ok; in tls_setup_handshake() local
153 if (ssl_get_min_max_version(s, &ver_min, &ver_max, NULL) != 0) { in tls_setup_handshake()
165 if (ssl_version_cmp(s, ver_max, md5sha1_needed_maxversion) <= 0) { in tls_setup_handshake()
206 if (ssl_version_cmp(s, ver_max, cipher_minprotover) >= 0 in tls_setup_handshake()
207 && ssl_version_cmp(s, ver_max, cipher_maxprotover) <= 0) { in tls_setup_handshake()
2301 int ret, ver_min, ver_max, real_max, origv; in ssl_choose_client_version() local
2350 ret = ssl_get_min_max_version(s, &ver_min, &ver_max, &real_max); in ssl_choose_client_version()
2357 || ssl_version_cmp(s, s->version, ver_max) > 0) { in ssl_choose_client_version()
2364 real_max = ver_max; in ssl_choose_client_version()
2537 int ver_min, ver_max, ret; in ssl_set_client_hello_version() local
2546 ret = ssl_get_min_max_version(s, &ver_min, &ver_max, NULL); in ssl_set_client_hello_version()
2551 s->version = ver_max; in ssl_set_client_hello_version()
2554 if (ver_max == DTLS1_BAD_VER) { in ssl_set_client_hello_version()
2562 if (!ssl_set_record_protocol_version(s, ver_max)) in ssl_set_client_hello_version()
2565 } else if (ver_max > TLS1_2_VERSION) { in ssl_set_client_hello_version()
2567 ver_max = TLS1_2_VERSION; in ssl_set_client_hello_version()
2570 s->client_version = ver_max; in ssl_set_client_hello_version()