Lines Matching refs:version

115             s->msg_callback(1, s->version, type, s->init_buf->data,  in ssl3_do_write()
367 if (s->version == SSL3_VERSION) { in tls_construct_cert_verify()
562 if (s->version == SSL3_VERSION) { in tls_process_cert_verify()
789 if ((s->version == DTLS1_BAD_VER in tls_process_change_cipher_spec()
791 || (s->version != DTLS1_BAD_VER in tls_process_change_cipher_spec()
816 if (s->version == DTLS1_BAD_VER) in tls_process_change_cipher_spec()
1602 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, in tls_get_message_header()
1717 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, s->init_buf->data, in tls_get_message_body()
1809 int version; member
1879 int version = method->version; in ssl_method_error() local
1882 ssl_version_cmp(s, version, s->min_proto_version) < 0) || in ssl_method_error()
1883 ssl_security(s, SSL_SECOP_VERSION, 0, version, NULL) == 0) in ssl_method_error()
1887 ssl_version_cmp(s, version, s->max_proto_version) > 0) in ssl_method_error()
1966 int ssl_version_supported(const SSL_CONNECTION *s, int version, in ssl_version_supported() argument
1972 switch (SSL_CONNECTION_GET_SSL(s)->method->version) { in ssl_version_supported()
1975 return ssl_version_cmp(s, version, s->version) == 0; in ssl_version_supported()
1985 vent->version != 0 && ssl_version_cmp(s, version, vent->version) <= 0; in ssl_version_supported()
1991 && ssl_version_cmp(s, version, vent->version) == 0 in ssl_version_supported()
1994 || version != TLS1_3_VERSION in ssl_version_supported()
2024 if (s->version == ssl->defltmeth->version) in ssl_check_version_downgrade()
2031 if (ssl->defltmeth->version == TLS_method()->version) in ssl_check_version_downgrade()
2033 else if (ssl->defltmeth->version == DTLS_method()->version) in ssl_check_version_downgrade()
2040 for (vent = table; vent->version != 0; ++vent) { in ssl_check_version_downgrade()
2042 return s->version == vent->version; in ssl_check_version_downgrade()
2059 int ssl_set_version_bound(int method_version, int version, int *bound) in ssl_set_version_bound() argument
2064 if (version == 0) { in ssl_set_version_bound()
2065 *bound = version; in ssl_set_version_bound()
2069 valid_tls = version >= SSL3_VERSION && version <= TLS_MAX_VERSION_INTERNAL; in ssl_set_version_bound()
2072 (version == DTLS1_BAD_VER) in ssl_set_version_bound()
2073 || (DTLS_VERSION_LE(version, DTLS_MAX_VERSION_INTERNAL) in ssl_set_version_bound()
2074 && DTLS_VERSION_GE(version, DTLS1_VERSION)); in ssl_set_version_bound()
2099 *bound = version; in ssl_set_version_bound()
2104 *bound = version; in ssl_set_version_bound()
2153 int server_version = ssl->method->version; in ssl_choose_server_version()
2165 if (ssl_version_cmp(s, client_version, s->version) < 0) in ssl_choose_server_version()
2243 s->version = best_vers; in ssl_choose_server_version()
2264 for (vent = table; vent->version != 0; ++vent) { in ssl_choose_server_version()
2268 ssl_version_cmp(s, client_version, vent->version) < 0) in ssl_choose_server_version()
2272 check_for_downgrade(s, vent->version, dgrd); in ssl_choose_server_version()
2273 s->version = vent->version; in ssl_choose_server_version()
2275 if (!ssl_set_record_protocol_version(s, s->version)) in ssl_choose_server_version()
2296 int ssl_choose_client_version(SSL_CONNECTION *s, int version, in ssl_choose_client_version() argument
2304 origv = s->version; in ssl_choose_client_version()
2305 s->version = version; in ssl_choose_client_version()
2312 s->version = origv; in ssl_choose_client_version()
2317 && s->version != TLS1_3_VERSION) { in ssl_choose_client_version()
2318 s->version = origv; in ssl_choose_client_version()
2323 switch (ssl->method->version) { in ssl_choose_client_version()
2325 if (s->version != ssl->method->version) { in ssl_choose_client_version()
2326 s->version = origv; in ssl_choose_client_version()
2337 if (!ssl_set_record_protocol_version(s, s->version)) { in ssl_choose_client_version()
2352 s->version = origv; in ssl_choose_client_version()
2356 if (ssl_version_cmp(s, s->version, ver_min) < 0 in ssl_choose_client_version()
2357 || ssl_version_cmp(s, s->version, ver_max) > 0) { in ssl_choose_client_version()
2358 s->version = origv; in ssl_choose_client_version()
2367 if (s->version == TLS1_2_VERSION && real_max > s->version) { in ssl_choose_client_version()
2372 s->version = origv; in ssl_choose_client_version()
2378 && s->version < TLS1_2_VERSION in ssl_choose_client_version()
2379 && real_max > s->version) { in ssl_choose_client_version()
2384 s->version = origv; in ssl_choose_client_version()
2391 for (vent = table; vent->version != 0; ++vent) { in ssl_choose_client_version()
2392 if (vent->cmeth == NULL || s->version != vent->version) in ssl_choose_client_version()
2396 if (!ssl_set_record_protocol_version(s, s->version)) { in ssl_choose_client_version()
2403 s->version = origv; in ssl_choose_client_version()
2433 int version, tmp_real_max; in ssl_get_min_max_version() local
2440 switch (ssl->method->version) { in ssl_get_min_max_version()
2449 *min_version = *max_version = s->version; in ssl_get_min_max_version()
2485 *min_version = version = 0; in ssl_get_min_max_version()
2490 for (vent = table; vent->version != 0; ++vent) { in ssl_get_min_max_version()
2503 tmp_real_max = vent->version; in ssl_get_min_max_version()
2508 *min_version = method->version; in ssl_get_min_max_version()
2512 version = method->version; in ssl_get_min_max_version()
2513 *min_version = version; in ssl_get_min_max_version()
2518 *max_version = version; in ssl_get_min_max_version()
2521 if (version == 0) in ssl_get_min_max_version()
2551 s->version = ver_max; in ssl_set_client_hello_version()