in your adef file, you need to add the following to import on-board library to legato application :
requires:
{
file:
{
/usr/lib/libcurl.so.4.5.0 /lib/libcurl.so.4
/usr/lib/libssh2.so.1.0.1 /lib/libssh2.so.1
Also there is a problem in DNS:
you need to change your code to the following to use real IP address:
curl_easy_setopt(curl, CURLOPT_URL, "smtps://108.177.125.109:465"); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 0);