Lines Matching refs:options
2504 mbedtls_test_handshake_test_options options;
2505 mbedtls_test_init_handshake_options(&options);
2506 options.pk_alg = MBEDTLS_PK_RSA;
2510 ret = mbedtls_test_ssl_endpoint_init(NULL, endpoint_type, &options,
2514 ret = mbedtls_test_ssl_endpoint_certificate_init(NULL, options.pk_alg,
2518 ret = mbedtls_test_ssl_endpoint_init(&ep, endpoint_type, &options,
2524 mbedtls_test_free_handshake_options(&options);
2537 mbedtls_test_handshake_test_options options;
2538 mbedtls_test_init_handshake_options(&options);
2540 options.pk_alg = MBEDTLS_PK_RSA;
2549 options.client_min_version = MBEDTLS_SSL_VERSION_TLS1_2;
2550 options.client_max_version = MBEDTLS_SSL_VERSION_TLS1_2;
2552 options.server_min_version = MBEDTLS_SSL_VERSION_TLS1_2;
2553 options.server_max_version = MBEDTLS_SSL_VERSION_TLS1_2;
2562 ret = mbedtls_test_ssl_endpoint_init(&base_ep, endpoint_type, &options,
2570 &options, NULL, NULL, NULL);
2595 mbedtls_test_free_handshake_options(&options);
2607 mbedtls_test_handshake_test_options options;
2608 mbedtls_test_init_handshake_options(&options);
2610 options.client_min_version = client_min_version;
2611 options.client_max_version = client_max_version;
2612 options.server_min_version = server_min_version;
2613 options.server_max_version = server_max_version;
2614 options.expected_negotiated_version = expected_negotiated_version;
2616 options.dtls = dtls;
2617 mbedtls_test_ssl_perform_handshake(&options);
2623 mbedtls_test_free_handshake_options(&options);
2630 mbedtls_test_handshake_test_options options;
2631 mbedtls_test_init_handshake_options(&options);
2633 options.cipher = cipher;
2634 options.dtls = dtls;
2635 options.psk_str = psk_str;
2636 options.pk_alg = pk_alg;
2638 options.client_min_version = MBEDTLS_SSL_VERSION_TLS1_2;
2639 options.client_max_version = MBEDTLS_SSL_VERSION_TLS1_2;
2640 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2642 mbedtls_test_ssl_perform_handshake(&options);
2648 mbedtls_test_free_handshake_options(&options);
2668 mbedtls_test_handshake_test_options options;
2669 mbedtls_test_init_handshake_options(&options);
2671 options.cipher = cipher;
2672 options.psk_str = psk_str;
2673 options.pk_alg = pk_alg;
2674 options.opaque_alg = psa_alg;
2675 options.opaque_alg2 = psa_alg2;
2676 options.opaque_usage = psa_usage;
2677 options.expected_handshake_result = expected_handshake_result;
2678 options.expected_ciphersuite = expected_ciphersuite;
2680 options.server_min_version = MBEDTLS_SSL_VERSION_TLS1_2;
2681 options.server_max_version = MBEDTLS_SSL_VERSION_TLS1_2;
2682 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2684 mbedtls_test_ssl_perform_handshake(&options);
2690 mbedtls_test_free_handshake_options(&options);
2699 mbedtls_test_handshake_test_options options;
2700 mbedtls_test_init_handshake_options(&options);
2702 options.mfl = mfl;
2703 options.cli_msg_len = cli_msg_len;
2704 options.srv_msg_len = srv_msg_len;
2705 options.expected_cli_fragments = expected_cli_fragments;
2706 options.expected_srv_fragments = expected_srv_fragments;
2707 options.dtls = dtls;
2709 options.client_min_version = MBEDTLS_SSL_VERSION_TLS1_2;
2710 options.client_max_version = MBEDTLS_SSL_VERSION_TLS1_2;
2711 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2713 mbedtls_test_ssl_perform_handshake(&options);
2719 mbedtls_test_free_handshake_options(&options);
2750 mbedtls_test_handshake_test_options options;
2751 mbedtls_test_init_handshake_options(&options);
2753 options.serialize = 1;
2754 options.dtls = 1;
2755 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2756 mbedtls_test_ssl_perform_handshake(&options);
2760 mbedtls_test_free_handshake_options(&options);
2769 mbedtls_test_handshake_test_options options;
2776 mbedtls_test_init_handshake_options(&options);
2777 options.dtls = 1;
2778 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2779 options.mfl = mfl;
2781 options.cipher = "TLS-DHE-RSA-WITH-AES-256-CBC-SHA256";
2782 options.srv_auth_mode = MBEDTLS_SSL_VERIFY_REQUIRED;
2783 options.srv_log_obj = &srv_pattern;
2784 options.cli_log_obj = &cli_pattern;
2785 options.srv_log_fun = mbedtls_test_ssl_log_analyzer;
2786 options.cli_log_fun = mbedtls_test_ssl_log_analyzer;
2788 mbedtls_test_ssl_perform_handshake(&options);
2800 mbedtls_test_free_handshake_options(&options);
2807 mbedtls_test_handshake_test_options options;
2808 mbedtls_test_init_handshake_options(&options);
2810 options.renegotiate = 1;
2811 options.legacy_renegotiation = legacy_renegotiation;
2812 options.dtls = 1;
2813 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2815 mbedtls_test_ssl_perform_handshake(&options);
2820 mbedtls_test_free_handshake_options(&options);
2828 mbedtls_test_handshake_test_options options;
2829 mbedtls_test_init_handshake_options(&options);
2831 options.mfl = mfl;
2832 options.cipher = cipher;
2833 options.renegotiate = renegotiation;
2834 options.legacy_renegotiation = legacy_renegotiation;
2835 options.serialize = serialize;
2836 options.dtls = dtls;
2838 options.expected_negotiated_version = MBEDTLS_SSL_VERSION_TLS1_2;
2840 options.resize_buffers = 1;
2842 mbedtls_test_ssl_perform_handshake(&options);
2847 mbedtls_test_free_handshake_options(&options);
3106 mbedtls_test_handshake_test_options options;
3113 mbedtls_test_init_handshake_options(&options);
3115 options.srv_log_obj = &srv_pattern;
3116 options.srv_log_fun = mbedtls_test_ssl_log_analyzer;
3126 &options, NULL, NULL,
3130 &options, NULL, NULL, NULL) == 0);
3133 mbedtls_ssl_conf_dbg(&server.conf, options.srv_log_fun,
3134 options.srv_log_obj);
3146 if (options.cli_msg_len != 0 || options.srv_msg_len != 0) {
3149 &(client.ssl), options.cli_msg_len,
3150 options.expected_cli_fragments,
3151 &(server.ssl), options.srv_msg_len,
3152 options.expected_srv_fragments)
3161 mbedtls_test_free_handshake_options(&options);