Remove testing of mbedtls_ssl_conf_own_cert(NULL)

A future commit will test it on its own instead of as part of every positive
test.

Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Gilles Peskine
2025-05-28 20:23:21 +02:00
parent b6bb3fb6ef
commit 35a2d9b65a
-9
View File
@@ -716,15 +716,6 @@ int mbedtls_test_ssl_endpoint_certificate_init(mbedtls_test_ssl_endpoint *ep,
mbedtls_ssl_conf_ca_chain(&(ep->conf), ep->ca_chain, NULL);
ret = mbedtls_ssl_conf_own_cert(&(ep->conf), ep->cert,
ep->pkey);
TEST_EQUAL(ret, 0);
TEST_ASSERT(ep->conf.key_cert != NULL);
ret = mbedtls_ssl_conf_own_cert(&(ep->conf), NULL, NULL);
TEST_EQUAL(ret, 0);
TEST_ASSERT(ep->conf.key_cert == NULL);
ret = mbedtls_ssl_conf_own_cert(&(ep->conf), ep->cert,
ep->pkey);
TEST_EQUAL(ret, 0);