mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-21 02:29:51 +00: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 <[email protected]>
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