I am using CURL to connect with ssl in a ftpserver. Doing this i am using code below
curl_easy_setopt( hCurl, CURLOPT_USE_SSL, CURLUSESSL_ALL ); //curl_easy_s