/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 | 879 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local 1226 max_version = SSL3_VERSION; in s_client_main() 1234 max_version = TLS1_3_VERSION; in s_client_main() 1242 max_version = TLS1_2_VERSION; in s_client_main() 1250 max_version = TLS1_1_VERSION; in s_client_main() 1258 max_version = TLS1_VERSION; in s_client_main() 1275 max_version = DTLS1_VERSION; in s_client_main() 1284 max_version = DTLS1_2_VERSION; in s_client_main() 1746 if (max_version != 0 in s_client_main() 1747 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_client_main()
|
H A D | s_server.c | 1039 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local 1487 max_version = SSL3_VERSION; in s_server_main() 1491 max_version = TLS1_3_VERSION; in s_server_main() 1495 max_version = TLS1_2_VERSION; in s_server_main() 1499 max_version = TLS1_1_VERSION; in s_server_main() 1503 max_version = TLS1_VERSION; in s_server_main() 1515 max_version = DTLS1_VERSION; in s_server_main() 1523 max_version = DTLS1_2_VERSION; in s_server_main() 1889 if (max_version != 0 in s_server_main() 1890 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
|
/openssl/test/ |
H A D | ssl_ctx_test.c | 15 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 D | ssl_old_test.c | 917 int min_version = 0, max_version = 0; in main() local 1346 max_version = SSL3_VERSION; in main() 1349 max_version = TLS1_VERSION; in main() 1352 max_version = TLS1_1_VERSION; in main() 1355 max_version = TLS1_2_VERSION; in main() 1360 max_version = TLS1_2_VERSION; in main() 1362 max_version = 0; in main() 1371 max_version = DTLS1_VERSION; in main() 1374 max_version = DTLS1_2_VERSION; in main() 1377 max_version = 0; in main() [all …]
|
H A D | sslapitest.c | 953 int min_version, int max_version, in execute_test_large_message() argument 976 max_version, &sctx, &cctx, cert, in execute_test_large_message() 1525 int min_version, int max_version) in execute_cleanse_plaintext() argument 1540 min_version, max_version, in execute_cleanse_plaintext() 4620 int max_version = TLS1_3_VERSION; in test_key_exchange() local 4627 max_version = TLS1_2_VERSION; in test_key_exchange() 4659 max_version = TLS1_2_VERSION; in test_key_exchange() 4696 max_version, &sctx, &cctx, cert, in test_key_exchange() 4843 int max_version = TLS1_3_VERSION; in test_negotiated_group() local 4867 max_version = TLS1_2_VERSION; in test_negotiated_group() [all …]
|
/openssl/ssl/statem/ |
H A D | extensions_clnt.c | 112 static int use_ecc(SSL_CONNECTION *s, int min_version, int max_version) in use_ecc() argument 162 int reason, min_version, max_version; in tls_construct_ctos_ec_pt_formats() local 169 if (!use_ecc(s, min_version, max_version)) in tls_construct_ctos_ec_pt_formats() 193 int min_version, max_version, reason; in tls_construct_ctos_supported_groups() local 205 if (!use_ecc(s, min_version, max_version) in tls_construct_ctos_supported_groups() 233 && max_version == TLS1_3_VERSION) { in tls_construct_ctos_supported_groups() 248 if (okfortls13 && max_version == TLS1_3_VERSION) in tls_construct_ctos_supported_groups() 262 if (tls13added == 0 && max_version == TLS1_3_VERSION) { in tls_construct_ctos_supported_groups() 551 int currv, min_version, max_version, reason; in tls_construct_ctos_supported_versions() local 563 if (max_version < TLS1_3_VERSION) in tls_construct_ctos_supported_versions() [all …]
|
H A D | extensions.c | 774 unsigned int thisctx, int max_version) in should_add_extension() argument 784 && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension() 803 int min_version, max_version = 0, reason; in tls_construct_extensions() local 821 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_extensions() 833 if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) { in tls_construct_extensions() 845 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
|
H A D | statem_lib.c | 2078 int *max_version, int *real_max) in ssl_get_min_max_version() argument 2097 *min_version = *max_version = s->version; in ssl_get_min_max_version() 2168 *max_version = version; in ssl_get_min_max_version()
|
H A D | statem_local.h | 216 unsigned int thisctx, int max_version);
|
/openssl/ssl/ |
H A D | ssl_conf.c | 97 int *max_version; member 369 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol() 1077 cctx->max_version = &sc->max_proto_version; in SSL_CONF_CTX_set_ssl() 1083 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl() 1096 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx() 1102 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
|
H A D | ssl_lib.c | 456 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions() 471 if (max_version == 0) in ssl_check_allowed_versions() 472 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions() 475 max_version = DTLS1_VERSION; in ssl_check_allowed_versions() 497 if (max_version == 0) in ssl_check_allowed_versions() 498 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions() 501 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions() 505 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions() 509 max_version = TLS1_VERSION; in ssl_check_allowed_versions() 512 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions() [all …]
|
H A D | ssl_local.h | 2628 int *max_version, int *real_max);
|