Home
last modified time | relevance | path

Searched refs:max_version (Results 1 – 16 of 16) sorted by relevance

/freebsd/crypto/openssl/apps/
H A Dciphers.c109 int min_version = 0, max_version = 0; in ciphers_main() local
140 max_version = SSL3_VERSION; in ciphers_main()
144 max_version = TLS1_VERSION; in ciphers_main()
148 max_version = TLS1_1_VERSION; in ciphers_main()
152 max_version = TLS1_2_VERSION; in ciphers_main()
156 max_version = TLS1_3_VERSION; in ciphers_main()
197 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
H A Ds_time.c148 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local
229 max_version = SSL3_VERSION; in s_time_main()
233 max_version = TLS1_VERSION; in s_time_main()
237 max_version = TLS1_1_VERSION; in s_time_main()
241 max_version = TLS1_2_VERSION; in s_time_main()
245 max_version = TLS1_3_VERSION; in s_time_main()
267 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
H A Ds_client.c1018 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local
1372 max_version = SSL3_VERSION; in s_client_main()
1381 max_version = TLS1_3_VERSION; in s_client_main()
1390 max_version = TLS1_2_VERSION; in s_client_main()
1399 max_version = TLS1_1_VERSION; in s_client_main()
1408 max_version = TLS1_VERSION; in s_client_main()
1427 max_version = DTLS1_VERSION; in s_client_main()
1437 max_version = DTLS1_2_VERSION; in s_client_main()
1447 max_version = 0; in s_client_main()
1925 if (max_version != 0 in s_client_main()
[all …]
H A Ds_server.c1169 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local
1628 max_version = SSL3_VERSION; in s_server_main()
1632 max_version = TLS1_3_VERSION; in s_server_main()
1636 max_version = TLS1_2_VERSION; in s_server_main()
1640 max_version = TLS1_1_VERSION; in s_server_main()
1644 max_version = TLS1_VERSION; in s_server_main()
1656 max_version = DTLS1_VERSION; in s_server_main()
1664 max_version = DTLS1_2_VERSION; in s_server_main()
2053 if (max_version != 0 in s_server_main()
2054 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
/freebsd/crypto/openssl/test/
H A Dssl_ctx_test.c16 int max_version; member
112 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version()
121 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version()
H A Dssl_old_test.c928 int min_version = 0, max_version = 0; in main() local
1348 max_version = SSL3_VERSION; in main()
1351 max_version = TLS1_VERSION; in main()
1354 max_version = TLS1_1_VERSION; in main()
1357 max_version = TLS1_2_VERSION; in main()
1362 max_version = TLS1_2_VERSION; in main()
1364 max_version = 0; in main()
1373 max_version = DTLS1_VERSION; in main()
1376 max_version = DTLS1_2_VERSION; in main()
1379 max_version = 0; in main()
[all …]
H A Dsslapitest.c969 int min_version, int max_version, in execute_test_large_message() argument
977 max_version, &sctx, &cctx, cert, in execute_test_large_message()
1717 int min_version, int max_version) in execute_cleanse_plaintext() argument
1732 min_version, max_version, in execute_cleanse_plaintext()
4983 int max_version = TLS1_3_VERSION; in test_key_exchange() local
4992 max_version = TLS1_2_VERSION; in test_key_exchange()
5030 max_version = TLS1_2_VERSION; in test_key_exchange()
5063 max_version = TLS1_2_VERSION; in test_key_exchange()
5127 max_version, &sctx, &cctx, cert, in test_key_exchange()
5294 int max_version = TLS1_3_VERSION; in test_negotiated_group() local
[all …]
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions_clnt.c139 static int use_ecc(SSL_CONNECTION *s, int min_version, int max_version) in use_ecc() argument
175 if (tls_valid_group(s, ctmp, min_version, max_version, 1, NULL) in use_ecc()
189 int reason, min_version, max_version; in tls_construct_ctos_ec_pt_formats() local
191 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_ctos_ec_pt_formats()
196 if (!use_ecc(s, min_version, max_version)) in tls_construct_ctos_ec_pt_formats()
220 int min_version, max_version, reason; in tls_construct_ctos_supported_groups() local
222 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_ctos_supported_groups()
232 if (!use_ecc(s, min_version, max_version) in tls_construct_ctos_supported_groups()
233 && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION)) in tls_construct_ctos_supported_groups()
254 if (tls_valid_group(s, ctmp, min_version, max_version, 0, &okfortls13) in tls_construct_ctos_supported_groups()
[all …]
H A Dextensions.c775 unsigned int thisctx, int max_version) in should_add_extension() argument
785 && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension()
804 int min_version, max_version = 0, reason; in tls_construct_extensions() local
823 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_extensions()
836 if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) { in tls_construct_extensions()
848 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
H A Dstatem_lib.c2454 int *max_version, int *real_max) in ssl_get_min_max_version() argument
2472 *min_version = *max_version = s->version; in ssl_get_min_max_version()
2541 *max_version = version; in ssl_get_min_max_version()
H A Dstatem_local.h269 unsigned int thisctx, int max_version);
/freebsd/crypto/openssl/ssl/
H A Dssl_conf.c102 int *max_version; member
372 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
1161 cctx->max_version = &sc->max_proto_version; in SSL_CONF_CTX_set_ssl()
1171 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl()
1185 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx()
1195 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
H A Dssl_lib.c449 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
457 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
458 || max_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
461 if ((minisdtls && !maxisdtls && max_version != 0) in ssl_check_allowed_versions()
472 if (max_version == 0) in ssl_check_allowed_versions()
473 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
475 if (max_version == DTLS1_2_VERSION) in ssl_check_allowed_versions()
476 max_version = DTLS1_VERSION; in ssl_check_allowed_versions()
486 && DTLS_VERSION_GE(DTLS1_VERSION, max_version)) in ssl_check_allowed_versions()
490 && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version)) in ssl_check_allowed_versions()
[all …]
H A Dssl_local.h2717 int *max_version, int *real_max);
/freebsd/sys/dev/sfxge/common/
H A Defx_mcdi.c255 unsigned int max_version; in efx_mcdi_request_start() local
284 max_version = emip->emi_max_version; in efx_mcdi_request_start()
296 if ((max_version >= 2) && in efx_mcdi_request_start()
/freebsd/contrib/file/magic/Magdir/
H A Dlinux848 # max_version; nominally 1 or 2 but can be increased if more features are added in a backward-comp…
862 # only if max_version >= 2 and only relevant for updatedb