Lines Matching refs:max_version
442 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
450 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
451 || max_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
454 if ((minisdtls && !maxisdtls && max_version != 0) in ssl_check_allowed_versions()
465 if (max_version == 0) in ssl_check_allowed_versions()
466 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
468 if (max_version == DTLS1_2_VERSION) in ssl_check_allowed_versions()
469 max_version = DTLS1_VERSION; in ssl_check_allowed_versions()
479 && DTLS_VERSION_GE(DTLS1_VERSION, max_version)) in ssl_check_allowed_versions()
483 && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version)) in ssl_check_allowed_versions()
491 if (max_version == 0) in ssl_check_allowed_versions()
492 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions()
494 if (max_version == TLS1_3_VERSION) in ssl_check_allowed_versions()
495 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions()
498 if (max_version == TLS1_2_VERSION) in ssl_check_allowed_versions()
499 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions()
502 if (max_version == TLS1_1_VERSION) in ssl_check_allowed_versions()
503 max_version = TLS1_VERSION; in ssl_check_allowed_versions()
506 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions()
507 max_version = SSL3_VERSION; in ssl_check_allowed_versions()
528 || (min_version <= SSL3_VERSION && SSL3_VERSION <= max_version) in ssl_check_allowed_versions()
531 || (min_version <= TLS1_VERSION && TLS1_VERSION <= max_version) in ssl_check_allowed_versions()
534 || (min_version <= TLS1_1_VERSION && TLS1_1_VERSION <= max_version) in ssl_check_allowed_versions()
537 || (min_version <= TLS1_2_VERSION && TLS1_2_VERSION <= max_version) in ssl_check_allowed_versions()
540 || (min_version <= TLS1_3_VERSION && TLS1_3_VERSION <= max_version) in ssl_check_allowed_versions()