mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-22 12:00:35 -04: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:
parent
b6bb3fb6ef
commit
35a2d9b65a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user