/openssl/apps/ |
H A D | ciphers.c | 106 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() 194 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
|
H A D | s_time.c | 130 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() 249 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
|
H A D | s_client.c | 933 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local 1284 max_version = SSL3_VERSION; in s_client_main() 1293 max_version = TLS1_3_VERSION; in s_client_main() 1302 max_version = TLS1_2_VERSION; in s_client_main() 1311 max_version = TLS1_1_VERSION; in s_client_main() 1320 max_version = TLS1_VERSION; in s_client_main() 1339 max_version = DTLS1_VERSION; in s_client_main() 1349 max_version = DTLS1_2_VERSION; in s_client_main() 1359 max_version = 0; in s_client_main() 1840 if (max_version != 0 in s_client_main() [all …]
|
H A D | s_server.c | 1071 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local 1522 max_version = SSL3_VERSION; in s_server_main() 1526 max_version = TLS1_3_VERSION; in s_server_main() 1530 max_version = TLS1_2_VERSION; in s_server_main() 1534 max_version = TLS1_1_VERSION; in s_server_main() 1538 max_version = TLS1_VERSION; in s_server_main() 1550 max_version = DTLS1_VERSION; in s_server_main() 1558 max_version = DTLS1_2_VERSION; in s_server_main() 1948 if (max_version != 0 in s_server_main() 1949 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
|
/openssl/test/ |
H A D | ssl_ctx_test.c | 16 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 D | ssl_old_test.c | 930 int min_version = 0, max_version = 0; in main() local 1359 max_version = SSL3_VERSION; in main() 1362 max_version = TLS1_VERSION; in main() 1365 max_version = TLS1_1_VERSION; in main() 1368 max_version = TLS1_2_VERSION; in main() 1373 max_version = TLS1_2_VERSION; in main() 1375 max_version = 0; in main() 1384 max_version = DTLS1_VERSION; in main() 1387 max_version = DTLS1_2_VERSION; in main() 1390 max_version = 0; in main() [all …]
|
H A D | sslapitest.c | 959 int min_version, int max_version, in execute_test_large_message() argument 1708 int min_version, int max_version) in execute_cleanse_plaintext() argument 1723 min_version, max_version, in execute_cleanse_plaintext() 4959 int max_version = TLS1_3_VERSION; in test_key_exchange() local 4966 max_version = TLS1_2_VERSION; in test_key_exchange() 5004 max_version = TLS1_2_VERSION; in test_key_exchange() 5191 int max_version = TLS1_3_VERSION; in test_negotiated_group() local 5218 max_version = TLS1_2_VERSION; in test_negotiated_group() 9246 int max_version = TLS1_2_VERSION; /* Don't select TLS1_3 */ in test_multiblock_write() local 11934 int max_version = TLS1_3_VERSION; in test_multi_resume() local [all …]
|
/openssl/ssl/statem/ |
H A D | extensions_clnt.c | 139 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 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 232 if (!use_ecc(s, min_version, max_version) in tls_construct_ctos_supported_groups() 260 if (okfortls13 && max_version == TLS1_3_VERSION) in tls_construct_ctos_supported_groups() 274 if (tls13added == 0 && max_version == TLS1_3_VERSION) { in tls_construct_ctos_supported_groups() 563 int currv, min_version, max_version, reason; in tls_construct_ctos_supported_versions() local 575 if (max_version < TLS1_3_VERSION) in tls_construct_ctos_supported_versions() [all …]
|
H A D | extensions.c | 826 unsigned int thisctx, int max_version) in should_add_extension() argument 836 && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension() 855 int min_version, max_version = 0, reason; in tls_construct_extensions() local 875 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_extensions() 888 if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) { in tls_construct_extensions() 900 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
|
H A D | statem_lib.c | 2431 int *max_version, int *real_max) in ssl_get_min_max_version() argument 2449 *min_version = *max_version = s->version; in ssl_get_min_max_version() 2518 *max_version = version; in ssl_get_min_max_version()
|
H A D | statem_local.h | 269 unsigned int thisctx, int max_version);
|
/openssl/ssl/ |
H A D | ssl_conf.c | 99 int *max_version; member 371 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol() 1129 cctx->max_version = &sc->max_proto_version; in SSL_CONF_CTX_set_ssl() 1135 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl() 1148 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx() 1154 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
|
H A D | ssl_lib.c | 459 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions() 474 if (max_version == 0) in ssl_check_allowed_versions() 475 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions() 478 max_version = DTLS1_VERSION; in ssl_check_allowed_versions() 500 if (max_version == 0) in ssl_check_allowed_versions() 501 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions() 504 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions() 508 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions() 512 max_version = TLS1_VERSION; in ssl_check_allowed_versions() 515 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions() [all …]
|
H A D | ssl_local.h | 2671 int *max_version, int *real_max);
|