|
@@ -1607,7 +1607,7 @@ void ssl_server(void *pvParameters)
|
|
|
|
|
|
// 1. Load the certificates and private RSA key
|
|
// 1. Load the certificates and private RSA key
|
|
mbedtls_printf( "\r\n . Loading the server cert. and key..." );
|
|
mbedtls_printf( "\r\n . Loading the server cert. and key..." );
|
|
- ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, mbedtls_test_srv_crt_len );
|
|
|
|
|
|
+ ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) sSettings.our_srv_crt, (strlen(sSettings.our_srv_crt) + 1) );//mbedtls_test_srv_crtmbedtls_test_srv_crt_len
|
|
if( ret != 0 )
|
|
if( ret != 0 )
|
|
{
|
|
{
|
|
mbedtls_printf( " failed\r\n ! mbedtls_x509_crt_parse returned %d\r\n", ret );
|
|
mbedtls_printf( " failed\r\n ! mbedtls_x509_crt_parse returned %d\r\n", ret );
|