Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: wolfssl_connection.cpp
- Revision:
- 1:9190c0f4d23a
- Parent:
- 0:fa2de1b79154
--- a/wolfssl_connection.cpp Fri Apr 08 12:01:36 2016 -0700
+++ b/wolfssl_connection.cpp Sun Apr 24 16:41:14 2016 -0700
@@ -91,27 +91,27 @@
if(sslContext == NULL)
{
- LogError("NULL SSL context\r\n");
+ LogError("NULL SSL context");
result = __LINE__;
}
else
{
if (init_socket(SOCK_STREAM) < 0)
{
- LogError("init_socket failed\r\n");
+ LogError("init_socket failed");
result = __LINE__;
}
else
{
if (set_address(host, port) != 0)
{
- LogError("set_address failed\r\n");
+ LogError("set_address failed");
result = __LINE__;
}
else if (lwip_connect(_sock_fd, (const struct sockaddr *) &_remoteHost, sizeof(_remoteHost)) < 0)
{
close();
- LogError("lwip_connect failed\r\n");
+ LogError("lwip_connect failed");
result = __LINE__;
}
else
@@ -122,7 +122,7 @@
ssl = wolfSSL_new(sslContext);
if(ssl == NULL)
{
- LogError("wolfssl new error\r\n");
+ LogError("wolfssl new error");
result = __LINE__;
}
else
@@ -132,7 +132,7 @@
result = wolfSSL_connect(ssl);
if (result != SSL_SUCCESS)
{
- LogError("wolfssl connect error=%d\r\n", result);
+ LogError("wolfssl connect error=%d", result);
result = __LINE__;
}
else
@@ -220,7 +220,7 @@
if (sslContext == NULL)
{
- LogError("NULL SSL context\r\n");
+ LogError("NULL SSL context");
result = false;
}
else
