Home
last modified time | relevance | path

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

/freebsd-14.2/crypto/openssl/apps/
H A Dciphers.c106 int min_version = 0, max_version = 0; in ciphers_main() local
137 max_version = SSL3_VERSION; in ciphers_main()
141 max_version = TLS1_VERSION; in ciphers_main()
145 max_version = TLS1_1_VERSION; in ciphers_main()
149 max_version = TLS1_2_VERSION; in ciphers_main()
153 max_version = TLS1_3_VERSION; in ciphers_main()
195 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
H A Ds_time.c130 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local
211 max_version = SSL3_VERSION; in s_time_main()
215 max_version = TLS1_VERSION; in s_time_main()
219 max_version = TLS1_1_VERSION; in s_time_main()
223 max_version = TLS1_2_VERSION; in s_time_main()
227 max_version = TLS1_3_VERSION; in s_time_main()
250 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
H A Ds_client.c868 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local
1207 max_version = SSL3_VERSION; in s_client_main()
1215 max_version = TLS1_3_VERSION; in s_client_main()
1223 max_version = TLS1_2_VERSION; in s_client_main()
1231 max_version = TLS1_1_VERSION; in s_client_main()
1239 max_version = TLS1_VERSION; in s_client_main()
1256 max_version = DTLS1_VERSION; in s_client_main()
1265 max_version = DTLS1_2_VERSION; in s_client_main()
1720 if (max_version != 0 in s_client_main()
1721 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_client_main()
H A Ds_server.c1036 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local
1480 max_version = SSL3_VERSION; in s_server_main()
1484 max_version = TLS1_3_VERSION; in s_server_main()
1488 max_version = TLS1_2_VERSION; in s_server_main()
1492 max_version = TLS1_1_VERSION; in s_server_main()
1496 max_version = TLS1_VERSION; in s_server_main()
1508 max_version = DTLS1_VERSION; in s_server_main()
1516 max_version = DTLS1_2_VERSION; in s_server_main()
1870 if (max_version != 0 in s_server_main()
1871 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
/freebsd-14.2/crypto/openssl/test/
H A Dssl_ctx_test.c15 int max_version; member
48 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version()
57 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.c918 int min_version = 0, max_version = 0; in main() local
1347 max_version = SSL3_VERSION; in main()
1350 max_version = TLS1_VERSION; in main()
1353 max_version = TLS1_1_VERSION; in main()
1356 max_version = TLS1_2_VERSION; in main()
1361 max_version = TLS1_2_VERSION; in main()
1363 max_version = 0; in main()
1372 max_version = DTLS1_VERSION; in main()
1375 max_version = DTLS1_2_VERSION; in main()
1378 max_version = 0; in main()
[all …]
H A Dsslapitest.c998 int min_version, int max_version, in execute_test_large_message() argument
1688 int min_version, int max_version) in execute_cleanse_plaintext() argument
1702 min_version, max_version, in execute_cleanse_plaintext()
4882 int max_version = TLS1_3_VERSION; in test_key_exchange() local
4889 max_version = TLS1_2_VERSION; in test_key_exchange()
4925 max_version = TLS1_2_VERSION; in test_key_exchange()
5109 int max_version = TLS1_3_VERSION; in test_negotiated_group() local
5136 max_version = TLS1_2_VERSION; in test_negotiated_group()
8818 int max_version = TLS1_2_VERSION; /* Don't select TLS1_3 */ in test_multiblock_write() local
10659 int max_version = TLS1_3_VERSION; in test_multi_resume() local
[all …]
/freebsd-14.2/crypto/openssl/ssl/statem/
H A Dextensions_clnt.c111 static int use_ecc(SSL *s, int min_version, int max_version) in use_ecc() argument
160 int reason, min_version, max_version; in tls_construct_ctos_ec_pt_formats() local
167 if (!use_ecc(s, min_version, max_version)) in tls_construct_ctos_ec_pt_formats()
191 int min_version, max_version, reason; in tls_construct_ctos_supported_groups() local
203 if (!use_ecc(s, min_version, max_version) in tls_construct_ctos_supported_groups()
204 && (SSL_IS_DTLS(s) || max_version < TLS1_3_VERSION)) in tls_construct_ctos_supported_groups()
231 if (okfortls13 && max_version == TLS1_3_VERSION) in tls_construct_ctos_supported_groups()
245 if (tls13added == 0 && max_version == TLS1_3_VERSION) { in tls_construct_ctos_supported_groups()
527 int currv, min_version, max_version, reason; in tls_construct_ctos_supported_versions() local
539 if (max_version < TLS1_3_VERSION) in tls_construct_ctos_supported_versions()
[all …]
H A Dextensions.c778 int max_version) in should_add_extension() argument
788 && (SSL_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension()
806 int min_version, max_version = 0, reason; in tls_construct_extensions() local
824 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()
847 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
H A Dstatem_lib.c2029 int ssl_get_min_max_version(const SSL *s, int *min_version, int *max_version, in ssl_get_min_max_version() argument
2048 *min_version = *max_version = s->version; in ssl_get_min_max_version()
2119 *max_version = version; in ssl_get_min_max_version()
H A Dstatem_local.h193 unsigned int thisctx, int max_version);
/freebsd-14.2/crypto/openssl/ssl/
H A Dssl_conf.c97 int *max_version; member
369 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
1060 cctx->max_version = &ssl->max_proto_version; in SSL_CONF_CTX_set_ssl()
1066 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl()
1079 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx()
1085 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
H A Dssl_lib.c465 if (max_version == DTLS1_BAD_VER 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()
484 max_version = DTLS1_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()
510 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions()
514 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()
[all …]
H A Dssl_local.h2545 int *max_version, int *real_max);
/freebsd-14.2/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()