mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Add test for endpoint getter
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
30e0870937
commit
db6143364a
1 changed files with 2 additions and 0 deletions
|
|
@ -3051,6 +3051,8 @@ void conf_version(int endpoint, int transport,
|
|||
mbedtls_ssl_conf_max_tls_version(&conf, max_tls_version);
|
||||
|
||||
TEST_ASSERT(mbedtls_ssl_setup(&ssl, &conf) == expected_ssl_setup_result);
|
||||
TEST_EQUAL(mbedtls_ssl_conf_get_endpoint(
|
||||
mbedtls_ssl_context_get_config(&ssl)), endpoint);
|
||||
|
||||
mbedtls_ssl_free(&ssl);
|
||||
mbedtls_ssl_config_free(&conf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue