Lines Matching refs:max_version
451 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
459 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
460 || max_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
463 if ((minisdtls && !maxisdtls && max_version != 0) in ssl_check_allowed_versions()
474 if (max_version == 0) in ssl_check_allowed_versions()
475 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
477 if (max_version == DTLS1_2_VERSION) in ssl_check_allowed_versions()
478 max_version = DTLS1_VERSION; in ssl_check_allowed_versions()
488 && DTLS_VERSION_GE(DTLS1_VERSION, max_version)) in ssl_check_allowed_versions()
492 && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version)) in ssl_check_allowed_versions()
500 if (max_version == 0) in ssl_check_allowed_versions()
501 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions()
503 if (max_version == TLS1_3_VERSION) in ssl_check_allowed_versions()
504 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions()
507 if (max_version == TLS1_2_VERSION) in ssl_check_allowed_versions()
508 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions()
511 if (max_version == TLS1_1_VERSION) in ssl_check_allowed_versions()
512 max_version = TLS1_VERSION; in ssl_check_allowed_versions()
515 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions()
516 max_version = SSL3_VERSION; in ssl_check_allowed_versions()
537 || (min_version <= SSL3_VERSION && SSL3_VERSION <= max_version) in ssl_check_allowed_versions()
540 || (min_version <= TLS1_VERSION && TLS1_VERSION <= max_version) in ssl_check_allowed_versions()
543 || (min_version <= TLS1_1_VERSION && TLS1_1_VERSION <= max_version) in ssl_check_allowed_versions()
546 || (min_version <= TLS1_2_VERSION && TLS1_2_VERSION <= max_version) in ssl_check_allowed_versions()
549 || (min_version <= TLS1_3_VERSION && TLS1_3_VERSION <= max_version) in ssl_check_allowed_versions()