Make use of copy-less CRT parsing API in ssl_client2/ssl_server2

This commit is contained in:
Hanno Becker 2019-09-19 16:58:57 +01:00 committed by Teppo Järvelin
parent 7d864c494a
commit c828432920
2 changed files with 9 additions and 3 deletions

View file

@ -2545,7 +2545,7 @@ int main( int argc, char *argv[] )
#endif /* MBEDTLS_PEM_PARSE_C */
for( i = 0; mbedtls_test_cas_der[i] != NULL; i++ )
{
ret = mbedtls_x509_crt_parse_der( cacert,
ret = mbedtls_x509_crt_parse_der_nocopy( cacert,
(const unsigned char *) mbedtls_test_cas_der[i],
mbedtls_test_cas_der_len[i] );
if( ret != 0 )