Lines Matching refs:min_version
451 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
456 if (min_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
457 || min_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
464 || (maxisdtls && !minisdtls && min_version != 0)) { in ssl_check_allowed_versions()
471 if (min_version == 0) in ssl_check_allowed_versions()
473 min_version = DTLS1_VERSION; in ssl_check_allowed_versions()
481 if (min_version == DTLS1_VERSION) in ssl_check_allowed_versions()
482 min_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
487 || (DTLS_VERSION_GE(min_version, DTLS1_VERSION) in ssl_check_allowed_versions()
491 || (DTLS_VERSION_GE(min_version, DTLS1_2_VERSION) in ssl_check_allowed_versions()
498 if (min_version == 0) in ssl_check_allowed_versions()
499 min_version = SSL3_VERSION; in ssl_check_allowed_versions()
519 if (min_version == SSL3_VERSION) in ssl_check_allowed_versions()
520 min_version = TLS1_VERSION; in ssl_check_allowed_versions()
523 if (min_version == TLS1_VERSION) in ssl_check_allowed_versions()
524 min_version = TLS1_1_VERSION; in ssl_check_allowed_versions()
527 if (min_version == TLS1_1_VERSION) in ssl_check_allowed_versions()
528 min_version = TLS1_2_VERSION; in ssl_check_allowed_versions()
531 if (min_version == TLS1_2_VERSION) in ssl_check_allowed_versions()
532 min_version = TLS1_3_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()