Lines Matching refs:conf
646 if (ep->conf.endpoint == MBEDTLS_SSL_IS_SERVER) { in mbedtls_test_ssl_endpoint_certificate_init()
716 mbedtls_ssl_conf_ca_chain(&(ep->conf), cert->ca_cert, NULL); in mbedtls_test_ssl_endpoint_certificate_init()
718 ret = mbedtls_ssl_conf_own_cert(&(ep->conf), cert->cert, in mbedtls_test_ssl_endpoint_certificate_init()
721 TEST_ASSERT(ep->conf.key_cert != NULL); in mbedtls_test_ssl_endpoint_certificate_init()
723 ret = mbedtls_ssl_conf_own_cert(&(ep->conf), NULL, NULL); in mbedtls_test_ssl_endpoint_certificate_init()
725 TEST_ASSERT(ep->conf.key_cert == NULL); in mbedtls_test_ssl_endpoint_certificate_init()
727 ret = mbedtls_ssl_conf_own_cert(&(ep->conf), cert->cert, in mbedtls_test_ssl_endpoint_certificate_init()
765 mbedtls_ssl_config_init(&(ep->conf)); in mbedtls_test_ssl_endpoint_init()
766 mbedtls_ssl_conf_rng(&(ep->conf), rng_get, NULL); in mbedtls_test_ssl_endpoint_init()
768 TEST_ASSERT(mbedtls_ssl_conf_get_user_data_p(&ep->conf) == NULL); in mbedtls_test_ssl_endpoint_init()
769 TEST_EQUAL(mbedtls_ssl_conf_get_user_data_n(&ep->conf), 0); in mbedtls_test_ssl_endpoint_init()
776 mbedtls_ssl_conf_set_user_data_n(&ep->conf, user_data_n); in mbedtls_test_ssl_endpoint_init()
800 ret = mbedtls_ssl_config_defaults(&(ep->conf), endpoint_type, in mbedtls_test_ssl_endpoint_init()
808 mbedtls_ssl_conf_groups(&(ep->conf), group_list); in mbedtls_test_ssl_endpoint_init()
811 mbedtls_ssl_conf_authmode(&(ep->conf), MBEDTLS_SSL_VERIFY_REQUIRED); in mbedtls_test_ssl_endpoint_init()
815 mbedtls_ssl_conf_session_cache(&(ep->conf), options->cache, in mbedtls_test_ssl_endpoint_init()
821 ret = mbedtls_ssl_setup(&(ep->ssl), &(ep->conf)); in mbedtls_test_ssl_endpoint_init()
826 mbedtls_ssl_conf_dtls_cookies(&(ep->conf), NULL, NULL, NULL); in mbedtls_test_ssl_endpoint_init()
836 TEST_EQUAL(mbedtls_ssl_conf_get_user_data_n(&ep->conf), user_data_n); in mbedtls_test_ssl_endpoint_init()
837 mbedtls_ssl_conf_set_user_data_p(&ep->conf, ep); in mbedtls_test_ssl_endpoint_init()
852 mbedtls_ssl_config_free(&(ep->conf)); in mbedtls_test_ssl_endpoint_free()
909 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_write_fragment()
955 if (ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in mbedtls_ssl_read_fragment()
985 void set_ciphersuite(mbedtls_ssl_config *conf, const char *cipher, in set_ciphersuite() argument
996 TEST_ASSERT(ciphersuite_info->min_tls_version <= conf->max_tls_version); in set_ciphersuite()
997 TEST_ASSERT(ciphersuite_info->max_tls_version >= conf->min_tls_version); in set_ciphersuite()
999 if (conf->max_tls_version > ciphersuite_info->max_tls_version) { in set_ciphersuite()
1000 conf->max_tls_version = ciphersuite_info->max_tls_version; in set_ciphersuite()
1002 if (conf->min_tls_version < ciphersuite_info->min_tls_version) { in set_ciphersuite()
1003 conf->min_tls_version = ciphersuite_info->min_tls_version; in set_ciphersuite()
1006 mbedtls_ssl_conf_ciphersuites(conf, forced_ciphersuite); in set_ciphersuite()
1708 if (ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) { in check_ssl_version()
1788 mbedtls_ssl_conf_min_tls_version(&client.conf, in mbedtls_test_ssl_perform_handshake()
1793 mbedtls_ssl_conf_max_tls_version(&client.conf, in mbedtls_test_ssl_perform_handshake()
1798 set_ciphersuite(&client.conf, options->cipher, forced_ciphersuite); in mbedtls_test_ssl_perform_handshake()
1804 mbedtls_ssl_conf_dbg(&client.conf, options->cli_log_fun, in mbedtls_test_ssl_perform_handshake()
1828 mbedtls_ssl_conf_authmode(&server.conf, options->srv_auth_mode); in mbedtls_test_ssl_perform_handshake()
1831 mbedtls_ssl_conf_min_tls_version(&server.conf, in mbedtls_test_ssl_perform_handshake()
1836 mbedtls_ssl_conf_max_tls_version(&server.conf, in mbedtls_test_ssl_perform_handshake()
1841 TEST_ASSERT(mbedtls_ssl_conf_max_frag_len(&(server.conf), in mbedtls_test_ssl_perform_handshake()
1844 TEST_ASSERT(mbedtls_ssl_conf_max_frag_len(&(client.conf), in mbedtls_test_ssl_perform_handshake()
1854 &client.conf, options->psk_str->x, in mbedtls_test_ssl_perform_handshake()
1860 &server.conf, options->psk_str->x, in mbedtls_test_ssl_perform_handshake()
1865 mbedtls_ssl_conf_psk_cb(&server.conf, psk_dummy_callback, NULL); in mbedtls_test_ssl_perform_handshake()
1871 mbedtls_ssl_conf_renegotiation(&(server.conf), in mbedtls_test_ssl_perform_handshake()
1873 mbedtls_ssl_conf_renegotiation(&(client.conf), in mbedtls_test_ssl_perform_handshake()
1876 mbedtls_ssl_conf_legacy_renegotiation(&(server.conf), in mbedtls_test_ssl_perform_handshake()
1878 mbedtls_ssl_conf_legacy_renegotiation(&(client.conf), in mbedtls_test_ssl_perform_handshake()
1886 mbedtls_ssl_conf_dbg(&server.conf, options->srv_log_fun, in mbedtls_test_ssl_perform_handshake()
1990 TEST_ASSERT(mbedtls_ssl_setup(&(server.ssl), &(server.conf)) == 0); in mbedtls_test_ssl_perform_handshake()
2102 TEST_ASSERT(mbedtls_ssl_conf_get_user_data_p(&client.conf) == &client); in mbedtls_test_ssl_perform_handshake()
2104 TEST_ASSERT(mbedtls_ssl_conf_get_user_data_p(&server.conf) == &server); in mbedtls_test_ssl_perform_handshake()