Lines Matching refs:max_version
457 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
465 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
466 || max_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
469 if ((minisdtls && !maxisdtls && max_version != 0) in ssl_check_allowed_versions()
480 if (max_version == 0) in ssl_check_allowed_versions()
481 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
483 if (max_version == DTLS1_2_VERSION) in ssl_check_allowed_versions()
484 max_version = DTLS1_VERSION; in ssl_check_allowed_versions()
494 && DTLS_VERSION_GE(DTLS1_VERSION, max_version)) in ssl_check_allowed_versions()
498 && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version)) in ssl_check_allowed_versions()
506 if (max_version == 0) in ssl_check_allowed_versions()
507 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions()
509 if (max_version == TLS1_3_VERSION) in ssl_check_allowed_versions()
510 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions()
513 if (max_version == TLS1_2_VERSION) in ssl_check_allowed_versions()
514 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions()
517 if (max_version == TLS1_1_VERSION) in ssl_check_allowed_versions()
518 max_version = TLS1_VERSION; in ssl_check_allowed_versions()
521 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions()
522 max_version = SSL3_VERSION; in ssl_check_allowed_versions()
543 || (min_version <= SSL3_VERSION && SSL3_VERSION <= max_version) in ssl_check_allowed_versions()
546 || (min_version <= TLS1_VERSION && TLS1_VERSION <= max_version) in ssl_check_allowed_versions()
549 || (min_version <= TLS1_1_VERSION && TLS1_1_VERSION <= max_version) in ssl_check_allowed_versions()
552 || (min_version <= TLS1_2_VERSION && TLS1_2_VERSION <= max_version) in ssl_check_allowed_versions()
555 || (min_version <= TLS1_3_VERSION && TLS1_3_VERSION <= max_version) in ssl_check_allowed_versions()