/openssl-master/apps/ |
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() 195 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
|
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() 250 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
|
A D | s_client.c | 872 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local 1210 max_version = SSL3_VERSION; in s_client_main() 1218 max_version = TLS1_3_VERSION; in s_client_main() 1226 max_version = TLS1_2_VERSION; in s_client_main() 1234 max_version = TLS1_1_VERSION; in s_client_main() 1242 max_version = TLS1_VERSION; in s_client_main() 1259 max_version = DTLS1_VERSION; in s_client_main() 1268 max_version = DTLS1_2_VERSION; in s_client_main() 1709 if (max_version != 0 in s_client_main() 1710 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_client_main()
|
A D | s_server.c | 1036 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local 1476 max_version = SSL3_VERSION; in s_server_main() 1480 max_version = TLS1_3_VERSION; in s_server_main() 1484 max_version = TLS1_2_VERSION; in s_server_main() 1488 max_version = TLS1_1_VERSION; in s_server_main() 1492 max_version = TLS1_VERSION; in s_server_main() 1504 max_version = DTLS1_VERSION; in s_server_main() 1512 max_version = DTLS1_2_VERSION; in s_server_main() 1863 if (max_version != 0 in s_server_main() 1864 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
|
/openssl-master/test/ |
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()
|
A D | ssl_old_test.c | 901 int min_version = 0, max_version = 0; in main() local 1317 max_version = SSL3_VERSION; in main() 1320 max_version = TLS1_VERSION; in main() 1323 max_version = TLS1_2_VERSION; in main() 1328 max_version = TLS1_2_VERSION; in main() 1330 max_version = 0; in main() 1339 max_version = DTLS1_VERSION; in main() 1342 max_version = DTLS1_2_VERSION; in main() 1345 max_version = 0; in main() 1377 if (SSL_CTX_set_max_proto_version(c_ctx, max_version) == 0) in main() [all …]
|
A D | sslapitest.c | 944 int min_version, int max_version, in execute_test_large_message() argument 967 max_version, &sctx, &cctx, cert, in execute_test_large_message() 1502 int min_version, int max_version) in execute_cleanse_plaintext() argument 1516 min_version, max_version, in execute_cleanse_plaintext() 4567 int max_version = TLS1_3_VERSION; in test_key_exchange() local 4574 max_version = TLS1_2_VERSION; in test_key_exchange() 4606 max_version = TLS1_2_VERSION; in test_key_exchange() 4643 max_version, &sctx, &cctx, cert, in test_key_exchange() 4790 int max_version = TLS1_3_VERSION; in test_negotiated_group() local 4814 max_version = TLS1_2_VERSION; in test_negotiated_group() [all …]
|
/openssl-master/ssl/statem/ |
A D | extensions_clnt.c | 111 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 …]
|
A D | extensions.c | 764 int max_version) in should_add_extension() argument 774 && (SSL_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension() 792 int min_version, max_version = 0, reason; in tls_construct_extensions() local 810 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_extensions() 822 if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) { in tls_construct_extensions() 833 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
|
A D | statem_lib.c | 2021 int ssl_get_min_max_version(const SSL *s, int *min_version, int *max_version, in ssl_get_min_max_version() argument 2040 *min_version = *max_version = s->version; in ssl_get_min_max_version() 2111 *max_version = version; in ssl_get_min_max_version()
|
A D | statem_local.h | 188 unsigned int thisctx, int max_version);
|
/openssl-master/ssl/ |
A D | ssl_conf.c | 97 int *max_version; member 368 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol() 1045 cctx->max_version = &ssl->max_proto_version; in SSL_CONF_CTX_set_ssl() 1051 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl() 1064 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx() 1070 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
|
A D | ssl_lib.c | 450 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions() 465 if (max_version == 0) in ssl_check_allowed_versions() 466 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions() 469 max_version = DTLS1_VERSION; in ssl_check_allowed_versions() 491 if (max_version == 0) in ssl_check_allowed_versions() 492 max_version = TLS1_3_VERSION; in ssl_check_allowed_versions() 495 max_version = TLS1_2_VERSION; in ssl_check_allowed_versions() 499 max_version = TLS1_1_VERSION; in ssl_check_allowed_versions() 503 max_version = TLS1_VERSION; in ssl_check_allowed_versions() 506 if (max_version == TLS1_VERSION) in ssl_check_allowed_versions() [all …]
|
A D | ssl_local.h | 2538 int *max_version, int *real_max);
|