mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-23 01:52:40 +03:00
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 <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user