Fix use of pem_read_buffer() in PK, DHM and X509
diff --git a/library/x509.c b/library/x509.c
index 55daf74..08a1ec3 100644
--- a/library/x509.c
+++ b/library/x509.c
@@ -1008,7 +1008,7 @@
mbedtls_x509_crt_init( &clicert );
ret = mbedtls_x509_crt_parse( &clicert, (const unsigned char *) mbedtls_test_cli_crt,
- strlen( mbedtls_test_cli_crt ) );
+ mbedtls_test_cli_crt_len );
if( ret != 0 )
{
if( verbose != 0 )
@@ -1020,7 +1020,7 @@
mbedtls_x509_crt_init( &cacert );
ret = mbedtls_x509_crt_parse( &cacert, (const unsigned char *) mbedtls_test_ca_crt,
- strlen( mbedtls_test_ca_crt ) );
+ mbedtls_test_ca_crt_len );
if( ret != 0 )
{
if( verbose != 0 )